Checkbox.checked property doesnt work in safari 1.2
I have a "Check All" button on an asp page.When it is clicked all the checkboxes are checked.Here's the code.
function select()
{
for(var i=0; i<document.form1.length; i++)
{
var e = document.form1.elements ;
if (e.type=="checkbox")
e.checked = true;
}
}
.....
.....
But this code works only on safari 2.0 and not on safari 1.2.On safari 1.2,nothing happens.
Why is it so.
Any idea?
Thanks for ur replies.
Jayasurya