Revision: 33705
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 12, 2010 13:08 by powerthru
Initial Code
<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>
Initial URL
Initial Description
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.
Initial Title
Check form checkbox when the label is clicked
Initial Tags
form
Initial Language
JavaScript