Hmm, I just finished working on dynamically building a select menu,
when I decide to check the group.

Anyway, I went with using the native Option constructor because it is
a little simpler and probably faster.

// new Option(text, value);
var select = new Element('select', {name:'demo'});
select.options[select.length] = new Option('one', 1);
select.options[select.length] = new Option('two', 2);
select.options[select.length] = new Option('three', 3);


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to