Set Combobox Value

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>

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

I found it out myself:

this.setProperty("value",myValue);

sets the value and displays it.