Validate a Hidden Field

前端 未结 3 1073
無奈伤痛
無奈伤痛 2021-02-04 04:57

I\'m using MVC3 with unobtrusive validation. I have a field that the user is expected to fill with some data and then press a \"search\" button. If search has never been pressed

3条回答
  •  梦谈多话
    2021-02-04 05:49

    I had a similar problem, and I used this code to change defaults, in MVC 4:

    @Scripts.Render("~/bundles/jqueryval")
    
    
    

    Source: JQuery validate

提交回复
热议问题