Alex Rivera | Logout

How can I bind to the change event of a textarea in jQuery?

Asked 2012-07-05T06:05:36.700
252

I want to capture if any changes happened to <textarea>. Like typing any characters (deleting,backspace) or mouse click and paste or cut. Is there a jQuery event that can trigger for all those events?

I tried change event, but it triggers the callback only after tabbing out from the component.

Use: I want to enable a button if a <textarea> contains any text.

Edit
Report

1 Answer

2

try this ...

$("#txtAreaID").bind("keyup", function(event, ui) {                          

              // Write your code here       
 });
answered 2012-07-05T06:13:48.680

Your Answer