pradeep reddy
pradeep reddy

Reputation: 1

Any html event for textarea similar to onpropertychange that works for (i.e. Firefox, Chrome)?

In my context i want to call a function for (onkeypress and onpaste and mouse ~> click paste) but unable to handle "mouse ~> click paste" so I need a event that handles propertychange for html input that works for all browsers.

Upvotes: 0

Views: 795

Answers (1)

tymeJV
tymeJV

Reputation: 104775

You can use input

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

Seems to detect right click + paste just fine.

Demo: http://jsfiddle.net/tymeJV/WzZq4/

Upvotes: 1

Related Questions