John (or anyone)...
From this:
Code:
<input type="text" onblur="if (this.value.indexOf('\x22')!==-1){alert('Please, use no double quotes!');}">
specifically this part...:
Code:
(this.value.indexOf('\x22')!==-1)
...if I wanted to block out more than one character (let's say the letters a and/or x) how would I modify the above snippet?
So if a user types in a letter a (example), it would force the alert message - or if the user types in a letter x, it would force the alert message... is that possible, or do I have to list the onblur string twice - each with it's own parameter?
Thanks again,
- I
Bookmarks