You markup your form something like this:
- <input id="exA_Phone" class="fValidate['required','phone']" name="phone" type="text" />
And, the framework takes care of the validation. The example will let you see it at work.
Good stuff. My only complaints are that:
- You should have a way to know the conditions before you try (e.g. required or not)
- If there are more than one validation on a field it looks verbose (has to be a phone AND required)