Submit a form_remote from RJS

I have a remote_form :

<% form_remote_tag( :url =>{:action => ‘list’}, :html => {:id =>
‘prop_search_form’, :name => “prop_search_form”} ) do %>

<%= submit_tag “Search”, {:id => “search_btn”, :class => ‘inputSubmit’}
%>

I try to submit it from an RJS action in my controller, using :


page << “$(‘prop_search_form’).submit()”

is that correct ?

kad

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs