22 Nov 2012

Do something after paste using jquery


Example in jsFiddle: http://jsfiddle.net/VAT83/
$(function() {
    var textValue = $('#textValue');        
    $('#textareaID')
         .bind('input propertychange', function() {
             textValue.html($(this).val());
         })
         .trigger('propertychange');
});​

No comments:

Post a Comment