最多3个复选框 [英] atmost 3 checkbox select

查看:76
本文介绍了最多3个复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要选择最多三个复选框,请选择...其他三个复选框都启用后,我们就无法在该复选框上打勾,因此如何为此编写编码???????
请帮我解决它的紧迫问题.

i want to select atmost three checkbox select...after three other checkbox do enable means we can not tick on that checkbox so how can write cod for this ???????
plz help me its urgent......

推荐答案

编写一个自定义javascript函数,该函数将对选中事件中选中的复选框的数量进行计数.还要进行验证,不允许选中三个以上的复选框.


http://psoug.org/snippet/Javascript-Count-checkboxes_125.htm [ ^ ]
Write a custom javascript function which will count the number of checkboxes checked on the checked event . Also put a validation not allow more than 3 checkboxes to be checked.


http://psoug.org/snippet/Javascript-Count-checkboxes_125.htm[^]


这篇关于最多3个复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆