I would like to be able to dynamically (without reloading the page)
change the values from one listbox when a user select items from another
listbox. I have a model ‘Sector’ which has_many ‘levels’ (and of cours,
‘Level’ beyong_to ‘sector’). I want to show the user two listboxes with
the sectors and levels. But when a user select a certain ‘sector’, the
‘levels’ listbox should be populated dynamically with only the ones
related to that sector. I’m using collection_select for my listboxes.
On Friday, July 07, 2006, at 2:19 PM, Kevin O. wrote:
related to that sector. I’m using collection_select for my listboxes.
Rails mailing list
<%= select_tag ‘container_type_id’, options_for_select([’==Please