Disable validation for an element with jQuery Unobtrusive Validation

后端 未结 3 828
忘掉有多难
忘掉有多难 2020-12-14 11:05

I am generating a list of elements on a page, and they all have validators attached to them. When I look in the HTML source, I see something like:



        
3条回答
  •  清歌不尽
    2020-12-14 11:36

    I think this will help.

    @{ Html.EnableClientValidation(false); } @Html.TextBoxFor(m => m.BatchId, new { @class = "k-textbox" }) @{ Html.EnableClientValidation(true); }

提交回复
热议问题