单击标签时选中窗体复选框
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了单击标签时选中窗体复选框相关的知识,希望对你有一定的参考价值。
this is a way to deal with the fact that we can't reliably make checkboxes look larger on forms. So instead, we surround the form with a colored div, and set it up so that when the user clicks on the label next to the checkbox it checks the box.
<script> function radioME(){ uncheckALL("j",3) arguments[0].checked=true return true } function uncheckALL(){ var currentId=0; for(currentId=0;currentId<arguments[1];currentId++){ document.getElementById(arguments[0]+currentId).checked=false } } </script> <div style="background-color: rgb(255, 255, 204); padding: 5px; font-size: 12px; border: thin solid rgb(102, 136, 0);"> <label> <input type="checkbox" onclick="radioME(this)" id="j0" value="1" name="groups_KEY658_checkbox"/> <strong>Vote for Dan Seals</strong> </label> </div>
以上是关于单击标签时选中窗体复选框的主要内容,如果未能解决你的问题,请参考以下文章
Jquery Fancyform 和 IE10:单击标签时未选中复选框