I am trying to see which of the elements of a
a) select list have been selected.
b) radio button have been checked.
I have set up a for loop
for (i=0;
!document._xedx _._cdm[i].selected;
i++) {}
This works fine, and terminates when the selected object is found.
How can I stop this if NO CHOICE has been selected? Then of course I
keep incrementing i, and get
f has no properties.
after it gets too big.
How do I test for the "object has no properties" error?
a) select list have been selected.
b) radio button have been checked.
I have set up a for loop
for (i=0;
!document._xedx _._cdm[i].selected;
i++) {}
This works fine, and terminates when the selected object is found.
How can I stop this if NO CHOICE has been selected? Then of course I
keep incrementing i, and get
f has no properties.
after it gets too big.
How do I test for the "object has no properties" error?
Comment