aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Javascript help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

Javascript help needed

Shrikanth Nekkanti
Ranch Hand

Joined: Jul 12, 2007
Posts: 48
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

Joined: Jan 10, 2002
Posts: 61437
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

Please do not post the same question more than once.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Javascript help needed