Re: [Rails-spinoffs] SelectLists

2006-06-07 Thread Fernando
yes selectedIndex ,solved my problemn =) tks Carl escreveu: Hi, some text1 //id = 0 some text2 //id = 1 some text3 //id = 2 I need something like $('test').options[*TEST_ID*] but I only have it's value Try $('test').selectedIndex Regards, Carl.

RE: [Rails-spinoffs] SelectLists

2006-06-07 Thread Gregory Hill
$(‘test’).value = ‘45’;   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fernando Sent: Wednesday, June 07, 2006 8:15 AM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] SelectLists   How to know the option  Id from a Select List by its

RE: [Rails-spinoffs] SelectLists

2006-06-07 Thread Gregory Hill
@lists.rubyonrails.org Subject: [Rails-spinoffs] SelectLists   How to know the option  Id from a Select List by its value? ex       some text1 //id = 0       some text2 //id = 1     some text3 //id = 2     I need something like $('test').options[TEST_ID] but I only have

Re: [Rails-spinoffs] SelectLists

2006-06-07 Thread Carl
Hi, some text1 //id = 0 some text2 //id = 1 some text3 //id = 2 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'l

[Rails-spinoffs] SelectLists

2006-06-07 Thread Fernando
How to know the option  Id from a Select List by its value? ex       some text1 //id = 0       some text2 //id = 1     some text3 //id = 2     I need something like $('test').options[TEST_ID] but I only have it's value ___ R