events - jQuery on copy into input -


possible duplicate:
jquery catch paste input

is there event handler in jquery event in paste selection clipboard input field?

as know there no key movement involved rule out keyup , keydown. click event react click active input field not contents pasted after event.

any input appreciated.

yes, can use 'paste' event. here's example, copy, paste , cut #texta

$("#texta").bind('copy', function() {     alert('copy behaviour detected!') });  $("#texta").bind('paste', function() {     alert('paste behaviour detected!') });  $("#texta").bind('cut', function() {     alert('cut behaviour detected!') }); 

Comments