开发者

when checkbox is clicked I want Bvalidator to validate limited fields

I have a form and it contains some validation using bValidator. The issue I am facing is. When I check a checkbox I want the bValidator to validate limited fields only. And when the checkbox is not clicked , I want the bvalidator to validate all the fields. But the validation is already kept in the form element when created

how do I sort this issue out ?

开发者_C百科

Thanks Abhinab


The simplest solution would be that you make those fields disabled when the checkbox is checked. Or you can remove data-bvalidator attributes from fields when checkbox is checked.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜