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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -