
stupid drop-down list question.....
Nigel,
You were nearly there:
i=document.form1.cboList.selectedItem
form1.txtResult.value=document.form1.cbolist.options(i).value
Note: If you do this in Javascript, the selectedItem has a capital I
javascript is case sensitive) Also, although IE works without the
document before the form name, Netscape doesn't, so it is useful to
get used to using it so you don't spend hours banging your head agains
the wall when you start designing for Netscape....
Regards,
Heidi
Quote:
>I want to know, via the onchange, what the selected item is in a
drop-down
>combo box.
>Using the Script wizard, there isn't a 'item' property for the combo
box,
>only a 'selecteditem' one.
>How do I put the currently selected item into a text box as
'form1.txtResult.value=form1.cboList.Item(form1.cboList.selecteditem)'
Quote:
>doesn't work?
>Nigel W
>--
>Disclaimer:
>All views are my own and not Logica UK's