Html 5 Required Validator Triggers On All Buttons On The Form
Solution 1:
Add formnovalidate tag in each buttons html code.
<asp:ImageButtonID="Cancel"runat="server"ImageUrl="~/Images/ClaimForm/btnCancel.gif"OnClick="btnFallBack_Click"Visible="False"ToolTip="Cancel"draggable="false"formnovalidate="formnovalidate" />
Solution 2:
I solved it by assigning an onclick function to that button and adding:
event.preventDefault();
Post a Comment for "Html 5 Required Validator Triggers On All Buttons On The Form"