I'm currently facing an issue with my modals. I have a modal that contains login inputs and a link that triggers another modal for registration.
Both modals rely on the same form in my asp.net master page, and all inputs have required field validators set up.
The problem arises when I open the second modal - I am unable to submit the form because it detects the user/password inputs from the first modal as empty and does not validate them.
Is there a way to programmatically remove those inputs from either the codebehind or using JavaScript when clicking on
<a href="#Div1" data-toggle="modal" data-dismiss="myModal">Register now</a>
or
<button ID="bnt" type="button" data-toggle="modal" data-target="#Div1">Register now</button>
Any help is greatly appreciated. Thank you.