Created
October 25, 2016 05:36
-
-
Save sampathsl/bf7c760f6bbb1ab28f56b1643995840c to your computer and use it in GitHub Desktop.
Disable drop and paste in text boxes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function removeDropPaste() | |
{ | |
jQuery(".numeric").bind("paste", function (e) { | |
return false; | |
}); | |
jQuery(".numeric").bind("drop", function (e) { | |
return false; | |
}); | |
} | |
// remove the drop and paste on text boxes | |
jQuery(document).ready(function(){ | |
removeDropPaste(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment