Skip to content

Instantly share code, notes, and snippets.

@TheFoot
Created October 24, 2013 10:52
Show Gist options
  • Select an option

  • Save TheFoot/7135033 to your computer and use it in GitHub Desktop.

Select an option

Save TheFoot/7135033 to your computer and use it in GitHub Desktop.

Revisions

  1. TheFoot created this gist Oct 24, 2013.
    5 changes: 5 additions & 0 deletions js-disable-copy-paste.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    $(document).ready(function(){
    $('#txtInput').bind("cut copy paste",function(e) {
    e.preventDefault();
    });
    });