Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to trigger the client side validation from a javascript function

$
0
0

Hi:

I have a form with only one input control.  This input is related with a property which has the Required data annotation.

Then when you hit the submit button a javascript function is called.  This function does an ajax call only if there are no validation errors.  The problem is that I dont now how to trigger the client side validation.  I see that the unobtrusive parameters were added to the html input element.

I tried something like $('form').valid()    without luck.

Thanks in advanced

David


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>