i have a problem with firefox...
i have a form with some checkboxes and a checkbox "all" that when i click on it all the checkboxes(box1,box2) must be clicked at the same time.
i created this function:
function clickbox(checkbox)
{
if(checkbox.checked==true)
{
document.getElementById('box1').checked=true;
document.getElementById('box2').checked=true;
}
else
{
document.getElementById('box1').checked=false;
document.getElementById('box2').checked=false;
}
}
and then i have:
<input name="all" type="checkbox" onclick="javascript:clickbox(this);">
this works fine at IE but not in firefox.
any solution???




