Have to click submit button twice after validation triggered. You need to ...
Have to click submit button twice after validation triggered. You need to click one more time to fire the submit event. js Inertia Vue. js Livewire Vue. The form wrote get submitted when the submit button is clicked twice (only the first time). Thanks, Shahebaz In this example, you can click the first button as many times as you want, while the second button will only respond once. ~ Mar 28, 2013 ยท This is a form - attach the validate () function to the generated form - I do not need a stopPropogation () on the form to prevent default submit? It should validate first? Update: After great help from Sparky here is what works: Just wanted to share my code. Here is how you can trigger standard HTML5 form validation with JavaScript. However when there is a validation feedback on the page, the first click on any button just removes the validation feedback but doesnt trigger the MF inside it. Sometimes you'll need to validate and submit a form using JavaScript rather than using a standard submit button. I am using Page_ClientValidate() to ensure that the double click is prevented only if the page is valid. wzsvacsdhptucgozpoluajsjojkkkptqfwzqcdeuitgvmpzn