开发者

when checkbox is clicked I want Bvalidator to validate limited fields

开发者 https://www.devze.com 2023-04-02 02:42 出处:网络
I have a form and it contains some validation using bValidator.The issue I am facing is. When I check a checkboxI want the bValidator tovalidate limited fields only.And when the checkbox is not clicke

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

精彩评论

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