Richard Quadling wrote:
> ...
>
> 'fleetAxelConfig,fleetCustomer,fleetDirectory,fleetPurch,fleetSales,fleetSort1,fleetSort2,fleetSort3,fleetSort4,fleetSort5,fleetSort6,fleetVehType'.split(',').each(
> function(s_ID)
> {
> Event.observe($(s_ID), 'change', contractEdited);
> }
> );
> ...
>
>
Looks like my reply is a little late, but this seems like a good
situation for using $$(). Maybe something like:
$$('#fleet select').invoke('observe', 'change', contractEdited);
If your html is more complex, you could add a class to each of the
elements and use something like $$('#fleet .contract');
- Ken Snyder
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---