Here is my dilemma, I have a web page that I hides and shows textboxes based off a selection within a dropdown. The dropdown shows Yes/No, if they select NO they see one set of textboxes to fill out, if they select YES they see a different set of textboxes, once they're done, they click submit which does validation.
Here is my issue.
ALL textboxes are required, so how can I not validate the textboxes that are not showing on the screen? I'm hiding them like this: var show="";
if (show != "") show.style.display = 'none';
show = d;
and I call that from my dropdown.
and I have this in my HTML
<tbody id="N1" style="display: none;">
and I have textboxes within the N1 tag, I also have an N2 tag that shows if YES is selected.each tag has required textboxes, how can I not validate the textboxes if they are not showing on the screen and are in the hidden N tag?
View Complete Post