Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

Javascript help needed

 
Shrikanth Nekkanti
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi all I have created a HTML page which consists of many text fields.
I am using onkeypress event to restrict user not to enter special characters in text fields.

This event is working fine but the problem is when user copies special characters from some other place to text field , it is accepting special characters how can I solve this problem.

How to handle this situation.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

In a forum dedicated to JavaScript questions, a subject of "JavaScript help needed" is rather useless.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once.
 
    Bookmark Topic Watch Topic
  • New Topic