javascript - Before Html 5 validation trigger event? -


this question has answer here:

i have html 5 form input elements contains required constraint. user can view form in edit or view mode. means, hiding input controls if form in view mode , showing span instead. there submit button. whenever user click submit button , form in view mode get,

an invalid form control name='' not focusable. 

i tried show form in edit mode during form submit event getting error prior submit event invocation. how fix error? there event before validation happens?

per user2909164's answer in question, adding novalidate attribute form should fix issue:

<form name="myform" novalidate> 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -