Well, I know that Jquery Validation
does something similar because it only blocks a required field, if it is active, see example (In that case, if you accept "Please agree to our policy" it activates the 3% under% and comboBox
becomes active for them as well.)
I'm using the function validate
JQuery
like this:
function calc(){
alert($("#meuForm").find(".form").size());
}
In my form I put it to find all fields with find
My big problem is that there are invisible fields and inactive fields, but even so he keeps counting them ..... Any help?