In the case of a form where the user is asked to re-enter a field to ensure accuracy, it is a good idea to disable paste functionality on the second field. This is to ensure the user does not enter the data incorrectly then copy/paste it into the second field.
The following jQuery will achieve this.
$(document).ready(function () {
$('#email').bind("paste", function (e) {
e.preventDefault();
});
});
No comments:
Post a Comment