Checkbox.checked property doesnt work in safari 1.2

hi
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;

}
}
.....
.....
User uploaded file

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

Posted on Oct 26, 2005 12:32 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 3, 2005 2:00 PM

hi
I am sorry but actually there were two form tags in the code.That's the reason why it didn't work properly.I remved one of those and it works fine now.
Thanks for ur replies...
4 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Checkbox.checked property doesnt work in safari 1.2

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.