Hi,

    <select id="test">
      <option value="34"> some text1 </option> //id = 0
<option value="45"> some text2 </option> //id = 1 <option value="25"> some text3 </option> //id = 2
   </select>


 I need something like $('test').options[*TEST_ID*] but I only have it's 
value....

Try $('test').selectedIndex

Regards,
Carl.

--
TopTheTable.com - Fun and games for the World Cup 2006.
It'll get you in trouble with your boss, promise.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to