Surendra J Surendra J -3 years ago 136
Javascript Question

JavaScript or Jquery code to prevent special chars on number pad

In my project,I have to prevent the user form entering the following chars in the text box.
!@#$%^&*().So How to achieve this with JavaScript/Jquery .I am using it in web application.

Answer Source

You can use the following library : jQuery plugin validation

And add a custom method as demoed here Phone US

Hope this helps.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download