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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -