-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
César,
One way to deal with this is just to set the selected index at create time. Simply change your <listbox> to look like this:
<listbox rows="1" mold="select" id="lb" onCreate="self.setSelectedIndex(0)">
Then, in your alert you can do something like this to get the actual label (e.g. Inbox):
alert(lb.getSelectedItem().getLabel());
Regards,
Todd