your syntax is correct. most likely one of the items is null, so the script
is dieing when you ref the checked property.
if the item may or may not exist then:
if ((item1 && item1.checked) || ((item2 && item2.checked) )
>I may just be having one of those days but I cant think of a good way to do
> something like this - if(item1.checked || item2.checked || item3.checked
[quoted text clipped - 7 lines]
> so I
> guess I am just braindead today.
Cleako - 22 Oct 2005 20:54 GMT
So the (item1 && item1.checked) is only checked if the item1 has been
populated? I thought that the .checked would either be true or false, what
would make it return a null value?
Cleako
> your syntax is correct. most likely one of the items is null, so the script
> is dieing when you ref the checked property.
[quoted text clipped - 14 lines]
> > so I
> > guess I am just braindead today.