jquery - Is there a way to detect when code is pasted into an input? -
jquery - Is there a way to detect when code is pasted into an input? -
using jquery there way capture user's paste event , determine if user has pasted code snippet? (ruby,php,html,css,js etc...)?
thanks
bind paste
input.
something like:
$("selector").bind('paste', function(e) { //get pasted text, need little timeout var element = $(this); settimeout(function() { var text = $(element).val(); alert(text); }, 100); });
jquery
Comments
Post a Comment