Menu
Hi
I need to check all the list of checkboxes in the aplication.
But i need it from an image and not from another checkbox
If i do use a checkbox to call the checkall function it works
how can i make it work for an image ?
<img src=”img/check.gif” onClick=”checkAll()” name=”checkAll()”>
<input type=”checkbox” name=checkall onClick=”checkAll()”>
function CheckAll() {
var val;
val = document.frm.checkall.checked;
dml = document.frm;
len = dml.elements.length;
var i=0;
for( i=0 ; i<len ; i++) {
dml.elements[i].checked=val;
}
}