asp.net mvc client side validation not working?

前端 未结 6 1715
挽巷
挽巷 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:53

    For some reason the Html helpers does not have generated validation attributes in the inputs (data-val="true" and the others), check that. Besides to check the order in which the javascript libraries are loaded:

        
        
        
    

提交回复
热议问题