Client Side Failure Check Failure

I have a form that I submit based on the click of a div. I also have a start indicator on click. I am trying to find out if there is a way to detect if the client-side check failed or not so that I can remove the wait indicator / never show it after trying to send ... or I can call the client-side check manually before I try to send ?

+4
source share
1 answer

you can try

$('div').click(function() { if ($('form').valid()) { //form is valid else{ //invalid form } } }); 
+8
source

Source: https://habr.com/ru/post/1394494/


All Articles