Return to Snippet

Revision: 314
at July 9, 2006 09:44 by kgl


Updated Code
<script type="text/javascript">
<!--
function checkAll(wotForm,wotState) {
	for (a=0; a<wotForm.elements.length; a++) {
		if (wotForm.elements[a].id.indexOf("delete_") == 0) {
			wotForm.elements[a].checked = wotState ;
		}
	}
}
// -->
</script>

<input type="checkbox" onClick="checkAll(this.form,this.checked);" />

Revision: 313
at July 9, 2006 09:42 by kgl


Initial Code
<script type="text/javascript">
<!--
function checkAll(wotForm,wotState) {
	for (a=0; a<wotForm.elements.length; a++) {
		if (wotForm.elements[a].id.indexOf("delete_") == 0) {
			wotForm.elements[a].checked = wotState ;
		}
	}
}
// -->
</script>

Initial URL

                                

Initial Description

                                

Initial Title
select/deselect-all control

Initial Tags
form, javascript

Initial Language
JavaScript