Currently doing web forms with asp.net. The site is run by hiding and showing divs. I'm working on a help desk area. There are a couple of drop downs which selects what type of problem you have and this makes the correct questions visible, by changing the div to visible. Some parts are mandatory when the div is shown and others are not. This is an example of something in one of my divs:
Customer #: <input type="text" name="customer_number" required="" /><br />
The button at the end of all the divs is run at server and I have a breakpoint right away. The only way I can get to this breakpoint is if I take out the required part of each input. Does anyone know why this is a problem, and how do I fix it?
EDIT:
Wow I just figured it out. I had the wrong problem. Using required="" works but the problem is I have other required things hidden. The button click doesn't work because the hidden ones are still required. I'll have to come up with another work around