yes selectedIndex ,solved my problemn =)

tks

Carl escreveu:
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.

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to