/ Published in: JavaScript
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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<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>