【问题标题】:Any html event for textarea similar to onpropertychange that works for (i.e. Firefox, Chrome)?任何适用于(即 Firefox、Chrome)的类似于 onpropertychange 的 textarea html 事件?
【发布时间】:2013-09-10 18:17:03
【问题描述】:

在我的上下文中,我想为(onkeypressonpaste 和鼠标 ~> 单击粘贴)调用一个函数,但无法处理“鼠标 ~> 单击粘贴” 所以我需要一个处理 propertychange 的事件来处理适用于所有浏览器的 html 输入。

【问题讨论】:

标签: html jquery dom input jquery-events


【解决方案1】:

你可以使用input

$("input").on("input", function() {
    alert("Changed");
});

似乎检测到右键单击+粘贴就好了。

演示:http://jsfiddle.net/tymeJV/WzZq4/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-17
    • 1970-01-01
    • 1970-01-01
    • 2011-08-06
    • 2021-06-24
    • 2013-09-30
    相关资源
    最近更新 更多