Method -1 ( Using JQuery Approach)
$('form').submit(function () { if ($(this).find('.input-validation-error').length == 0) { $(this).find(':submit').attr('disabled', 'disabled'); } });
This is the simplest method to prevent the multiple submission of the record in MVC and even it works on JQuery Unobstructive validations.
Happy Coding!
No comments:
Post a Comment