Text field with 2 word minimum
Posted on 2011-05-10
I am using the Spry framework within dreamweaver (cs4) to validate a html form. I have a text field that must have 2 words in it to work properly. It can have more than two. I would like to allow for more than one space between words and spaces before the string if possible.
Since the rest of the form is validated using Spry, the OnSubmit function of the form is not used, and per my understanding is blank for spry to work properly. I have heard there was a way to use another script in tandem with spry to accomplish this.
So to be clear, I just need to validate one text field in a form to have at least 2 words, without destroying the existing spry validation.