Forum: Ruby on Rails submit a form_remote from RJS

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ee0293412faca21e4ebf3326ed9d5f8c?d=identicon&s=25 Kad Kerforn (kadoudal)
on 2007-05-02 19:14
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 ?

This topic is locked and can not be replied to.