开发者

FORM fields checking

开发者 https://www.devze.com 2022-12-31 00:45 出处:网络
I have a simple form with several checkboxes. Now I need to prevent users to 开发者_如何学Cproceed with this form if more then 3 checkboxes are selected. How should this be done? Prevent the user from

I have a simple form with several checkboxes. Now I need to prevent users to 开发者_如何学Cproceed with this form if more then 3 checkboxes are selected. How should this be done?


Prevent the user from proceeding in what fashion?

On general way would be to simply keep track of the number of check boxes checked within your checkbox check methods. In each check method, check your checkbox count variable and you can proceed from there how you want to prevent the user from interacting with your form.

0

精彩评论

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

关注公众号