Problem using validate plugin with hidden elements
Problem using validate plugin with hidden elements
I have a form with a select that is contained in a tr which is hidden when the select is is not required to be populated. I am trying to tell validate to only validate the select when that tr is not hidden (display:none)
To be more specific the first field on the form is to select country, then the second select is to choose state, but it is only displayed if the selected country has states.
The validation on the first select works fine.
I have tried this but it doesn't wurk- as in the form will not submit when only the visible fields are populated.