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.
$(‘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
@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
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
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