Tuesday, March 27, 2012

Restrict cut, copy and paste in text area using Jquery

HTML:
<textarea id="textarea_id" > </textarea>
Script:

$(document).ready(function() {
$('#textarea_id').bind('cut copy paste', function(e) { e.preventDefault(); });
});

No comments:

Post a Comment