Hi Zelijko,
Thank you very much for the reply.
but this wont work if I have multiple slect boxes which are hidden becuase all of the slect boxes have bPlaceholder as name ...altough
<input type="hidden" name="anSortValues[field1]" value="2">
are different
are different
please suggest
Thanking you
Deepa
Zeljko Filipin <[EMAIL PROTECTED]> wrote:
Well, I think it is because your code is all wrong. :)
Your html does not show hidden type select box (I think it even does not exits). But, you could have just typed hidden by mistake (instead of disabled). But, just in case...
Your html shows a hidden input field
<input type="hidden" name="anSortValues[fiel! d1]" value="2">
and a disabled select box
<select name="bPlaceholder" disabled style="font-size: 9 px"><option>1<option selected>2<option>3<option>4<option>5<option>6<option>7<option>8</select>
Please do check this site http://www.w3schools.com/ (for html visit http://www.w3schools.com/html/default.asp) for more info.
If you have this html
<select name="bPlaceholder" disabled><option>1<option selected>2<option>3<option>4<option>5<option>6<option>7<option>8</select>
and you would like to know what is selected, this will do it
irb(main):014:0> ie.select_list( :name, "bPlaceholder").getSelectedItems
=> ["2"]
It does not matter that it is disabled.
If you would like to get all options, try this
irb(main):015:0> ie.select_list( :name, "bPlaceholder").getAllContents
=> ["1", "2", "3", "4", "5", "6", "7", "8"]
I hope I answered your question.
--
http://www.testingreflections.com/blog/3071
http://iskusivac.blog.hr/ _______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
Whatever you can do or dream you can, begin it. Boldness has genius, power, and magic in it.
--Johann Wolfgang von Goethe
--Johann Wolfgang von Goethe
------------------------------------------------------------------------
Deepa Mallapareddy,
4981,Catoctin Drive,
Apt#15,San Diego
CA - 92115
Deepa Mallapareddy,
4981,Catoctin Drive,
Apt#15,San Diego
CA - 92115
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
