- Some times in validation point of view we need to disabled copy, paste, cut , like password or mobile number etc..,
- We can achieve this using jQuery -
$(document).ready(function(){
$('#txtInput').bind("cut copy paste",function(e) {
e.preventDefault();
});
});
That's it! It is very simple.
Have a Good Day.
No comments:
Post a Comment