Surendra J Surendra J - 9 months ago 41
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.

foo foo
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