HI Everyone,
How do I form the href on an anchor so I can create a link-style submit
for
an ajax form?
In this snippet, the INPUT generated by #submit_tag works OK, but the
anchor
results in the AJAX replacing the whole page?
Can I make the anchor/href submit the AJAX form as well?
Thank you!
I have this (list.rhtml):
<%= form_remote_tag :url => {:action=>:ajax_list_option_table},
:html => {:name=>'option_list_form'},
:update => 'option_table',
:complete => "Toggle.display('auto_link_link')";
%>
Options
<%= submit_tag "GO" %> GO |
<%= end_form_tag -%>
–