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.
Is it possible (with some AJAX maybe)?