I have the following select list.
<%= select_tag(:editlevel,options_from_collection_for_select(Level.all, :id, :name)) %>
when the user selects an option from the above list, the list below should be populated with values from database based on the above selection.
<%= select_tag(:lques,{},{ :size =>10, :style => "width:200px"}) %>
i think i should make use of a remote_function with the onchange event. but i have no idea on how to use it. and populate the latter list the values from the database. someone help me please.
thanks in advance.