I want to make valid forms in the most common way. For example, for the following rules:
- Not all text boxes should be empty
- Is there a tool for this, perhaps, jQuery plugin?
If the 'Show License' checkbox is checked, then 'I accept' should also be checked. Valid expression will be like '
input: text: [value = "], input: checkbox: #cholensance checked? Input: checkbox: uncheck # iaccept: nothing < / Code> '.
I would be happy to apply to jQuery selectors (returning invalid controls), but I do not know how to apply the conditions
Regards, / P>
Search the jquery validate plugin, it already exists.
Comments
Post a Comment