I have a form, when submitted, will turn the cursor: waiting. However if the MVC validation gives an error message because the property is required, the cursor does not turn back. How can I handle this? Here is how I am handling it now. I searched the forums, but nothing is working. Thank you.
$("form").submit(function () {
//if MVC validation fails do not do this
$("*").css("cursor", "wait");
});
jQuery(window).load( function () {
//called after the load is finished.
$("*").css("cursor", "auto");
});