Skip to content

Instantly share code, notes, and snippets.

@TheFoot
Created October 24, 2013 10:52
Show Gist options
  • Save TheFoot/7135033 to your computer and use it in GitHub Desktop.
Save TheFoot/7135033 to your computer and use it in GitHub Desktop.
Disable copy/paste in javascript
$(document).ready(function(){
$('#txtInput').bind("cut copy paste",function(e) {
e.preventDefault();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment