jQuery Validate: Checked *or* Filled?
Posted
by Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2010-04-08T00:50:09Z
Indexed on
2010/04/08
0:53 UTC
Read the original article
Hit count: 381
required( dependency-expression )
They give an example of required: "#other:checked"
but I want my field to be required if the #other
field is either :checked
or :filled
(I don't know whether it will be a checkbox, radio button, or textbox beforehand). How would I do this?
© Stack Overflow or respective owner