If you want to exclude the _ (underscore) too, you just need to add this near the \W like in the bellow example:
<input type="text" name="numbersandletters" onKeyUp="this.value=this.v
If you can't simply use the " \W ".... or if you want to exclude only a custom set of special chars, than you can make a enumeration of the excluded chars like:
<input type="text" name="some excludes" onKeyUp="this.value=this.v
...whit the note that the special chars must be escaped by the " \ " character .. and the {0,} means that any of those chars must have 0 or more occurrence and may also be replaced by the " * " char like in the bellow example:
<input type="text" name="some excludes" onKeyUp="this.value=this.v
This is the most simple solution I can offer to you. Please ask, if this isn't waht youre looking for.
Main Topics
Browse All Topics





by: TNamePosted on 2007-09-29 at 08:52:58ID: 19984191
Hi, what about
<input type="text" name="numbers" onKeyUp="this.value=this.v