I have an ASP.Net Core Razor page that uses Bootstrap and does client-side validation.
The form looks like this:
<form method="post" class="needs-validation" novalidate>
...
_ValidationScriptsPartial.cshtml looks like this:
<environment include="Development">
<script src="~/lib/jquery-validation/dist/jquery.validate.js"></script>
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
...
Everything works fine. If the user fails to enter a required field or enters a number that exceeds the maximum, the form won't submit and the offending field is highlighted in red.
Q: Is there a DOM event triggered on "validation succeeded"?
I would like to execute some Javascript after I know the form is "OK", but before it's actually POSTED to the server.
Thank you in advance!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…