Hi!!
I am using ASP.NET MVC 5 with jquery. I need to handle an event when the client side validation fails.
I tried this but got failure:
$("#myform").bind("invalid-form.validate", function ()
{
alert('invalid!'); }
);
Thanks
Home / DeveloperSection / Forums / How to raise a callback when ASP.NET MVC client validation fails
Hi!!
I am using ASP.NET MVC 5 with jquery. I need to handle an event when the client side validation fails.
I tried this but got failure:
$("#myform").bind("invalid-form.validate", function ()
{
alert('invalid!'); }
);
Thanks
Ailsa Singh
06-May-2017Manish Kumar
05-May-2017Hi Ailsa,
According to your description, I suggest you could use valid function to check if current input value is valid or not after the input element lost focus.
I am providing to a script please check it May it helps you..