I have a input like this:
<select name="born-year">[list of years]
</select>
And I want to set this input to the first in selectedIndex, which usually is
done by
document.form.i nput.selectedIn dex = 0
But this won't work:
document.form.b orn-year.selectedIn dex = 0
Probably because it has a '-' in it's name, right? How do I do it?
--
Sandman[.net]
<select name="born-year">[list of years]
</select>
And I want to set this input to the first in selectedIndex, which usually is
done by
document.form.i nput.selectedIn dex = 0
But this won't work:
document.form.b orn-year.selectedIn dex = 0
Probably because it has a '-' in it's name, right? How do I do it?
--
Sandman[.net]
Comment