PHP Web Developer
Web Development Information [PHP, DRUPAL, MYSQL, MAGENTO, JQUERY, JAVASCRIPT, CSS, HTML5]
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment