Most of the examples I have found work with forms. Please see the example fiddle
http://jsfiddle.net/pepefloyd/DL53N/2/
I want to show that button only when all the fields in either group of fields has been filled out.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If I understood you correctly, you want to check if all your fields (inputs, selects) contain a value and if so, proceede…
You do not depend on forms for that (though it would be semantically more correct).
you can do something like that:
You should consider not setting a default value for a field (like your
#depends1) if you want to check if the user set it.