Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Disable drop and paste in text boxes
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
You can’t perform that action at this time.