Displaying 1 result from an estimated 1 matches for "budget_project_numb".
Did you mean:
budget_project_number
2006 Jan 08
2
RoR AJAX select box update?
Hi,
I want to update a select box depending on another selected option thru
ajax.
Heres how I do it
# _form.rhtml
<select id="budget_coordinator_id" name="budget[coordinator_id]"
onchange="<%= remote_function(:update => "budget_project_number", :url
=> { :action => :get_projects }) %>">
<%= options_from_collection_for_select(Coordinator.find_all, "id",
"coordinator_name") %>
</select>
<select id="budget_project_number" name="budget[project_number]">
&...