Hi,
I have this:
<%= form_remote_tag (:update => "item_type_list", :url =>
{:action =>
:list_item_type_for_brand}, :id => "form1") %>
<div>
Brand <%= select :current_brand, :id, @all_brands,{},{:onchange =>
"submit()"} %>
<input type="submit" value="Change" />
</div>
<%= end_form_tag %>
which returns a list of items.
Its working when I click on the submit button, but when I use the
:onchange to submit the form, the AJAX calls is sent to a new page
insted of the <div> with the "item_type_list" id.
Any idea?
--
Posted via http://www.ruby-forum.com/.