[Wtr-general] Read a Focused value in Drop List
Željko Filipin
zeljko.filipin at gmail.com
Fri Apr 6 07:53:17 EDT 2007
Hi Vamsi,
If you have this html
<select>
<option value="one">one</option>
<option value="two">two</option>
</select>
this is how you can find what it selected (this is irb session).
irb(main):008:0> selected = ie.select_list(:index, 1).getSelectedItems
=> ["one"]
irb(main):010:0> selected[0]
=> "one"
Zeljko
--
ZeljkoFilipin.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070406/acae6636/attachment.html
More information about the Wtr-general
mailing list