ModelState.IsValid always true when accessed on View
问题 By following this i got the ModelState.IsValid ins jquery code. but it is always true, i can see the error on my page. What i am trying to achieve is show loading when a form is submitted. I used onclick event of submit. It shows loading even if there are validation errors on page. I don't wanna show loading in this case. I also tried using Form 's Submit event but same results. My ViewModel is having DataAnnotations for validations and form is in a partial view. Any suggestions how can i