Hi,
i would like to set the value of a Combobox with JS but it won't work.
Im doing the following:
<b:comboBox name="price_adult_type">
<b:comboBoxOption>Option1</b:comboBoxOption>
<b:comboBoxOption>Option2</b:comboBoxOption>
<e:handler event="DOMNodeInsertedIntoDocument" type="text/javascript">
this.value = "test";
alert(this.value);
</e:handler>
</b:comboBox>
<b:comboBoxOption>Option1</b:comboBoxOption>
<b:comboBoxOption>Option2</b:comboBoxOption>
<e:handler event="DOMNodeInsertedIntoDocument" type="text/javascript">
this.value = "test";
alert(this.value);
</e:handler>
</b:comboBox>
The value gets set and alerted, but it doesn't show up as text in the combobox but the combobox stays empty. (Since a Combobox should support normal text and given options I thought that this should work?)
matthias

I found it out
18 May, 2008 - 15:07 — ZappelI found it out myself:
sets the value and displays it.