Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 71
Registered: ‎12-17-2012
My Device: Bold 9900, PlayBook, DevAlphaC, Z10LE, Passport
My Carrier: o2

bbui select an option from dropdown

[ Edited ]

hi,

 

got a problem with select an option from a dropdown select-list. i am shure its pretty easy, but i dont know, what i am doing wrong:


                <select id="myselect" data-bb-label="myselect" >
                <option value="value_a">option1</option>
                <option value="value_b">option2</option>


                </select>

tried this:

 

document.getElementById('myselect').setSelectedItem(2);

it dont change the selected item...

 

thx

 

(Simulator on 10.0.9.2318)

 

 

//EDIT: Solved, the setSelectedItem starts on (0)  Smiley Embarassed Smiley Frustrated