Javascript :: Alliteration Text Box
I am trying to make a text box on a webUI force the user to use alliteration. I know how have the user input text and check it to see if it follows the rules of alliteration, but how could I be constantly checking the user's input?
As the person types I determine if the last character was a space, if so then the next character must be the same as the first from the previous word, if they type that letter then proceed, if not then leave blank. Can I run active dynamic Javascript like this? |
Yes, you could do this via Javascript. I'd also look into jquery. JQuery would be easier to implement. I think the thing to remember is to evaluate the value at input. If you Google "validate, textbox, and jQuery" you'll get a ton of examples. I liked this one specifically because it is at input rather than at form submit.
http://stackoverflow.com/questions/1...nt-has-changed |
Figured
vmccord, thanks for the reply. This led me on to what I was looking for.
Code:
<html> |
All times are GMT -5. The time now is 08:01 PM. |