Displaying 1 result from an estimated 1 matches for "update_areas_list".
2006 Aug 10
5
RJS in Internet Explorer to update a list box
...a
county</option></select>
<%= observe_field "county_state_id", :url => {:action =>
''update_counties_list''}, :with => ''county_state_id'' %>
<%= observe_field "area_county_id", :url => {:action =>
''update_areas_list''}, :with => ''area_county_id'' %>
And on the controller:
def update_counties_list
render :update do |page|
if params[''county_state_id''].blank?
page.replace_html ''address_area_id'', ''<option>Select a...