Thursday, November 27, 2014

jQuery disable paste on a form field

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.

No comments:

Post a Comment