asp.net mvc client side validation not working?

前端 未结 6 1709
挽巷
挽巷 2021-01-04 03:59

For some reason my client side validation does not seem to be working:

Here is my html:

@using (Html.BeginForm(\"Create\", \"Home\", FormMethod.Post)         


        
6条回答
  •  春和景丽
    2021-01-04 04:33

    Your problem is likely that you have jQuery at the bottom of your file, but you are putting jquery.validate at the top. jQuery has to come before jQuery.validate. I would suggest always putting jQuery in your header, not in the body, and it should be the first thing after modernizr.

    Also, you do know that jQuery 2.x does not work with IE8 ore earlier, right?

提交回复
热议问题