Forum: Rails deployment how to call submit buttons through javascript!!!

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.
20c6d66fff9453002a35f7623d4da735?d=identicon&s=25 Andy PS (abhionrails)
on 2007-04-06 08:52
i need to call submit button on href could you ppl plz help me out wit
this situation...
<%= start_form_tag %>
<%= submit_tag %>
instead of ths i want <a href> using javascript
<%= end_form_tag %>
62d1b24e8c433cef2855f5ea2b599dfb?d=identicon&s=25 Mickael Gerard (Guest)
on 2007-04-06 09:44
(Received via mailing list)

You should call the submit method of the form directly.

Something like this (not tested)

link_to_function "Submit link", "$('myformId').submit();)"


2007/4/6, Abhishek Shukla <>:
This topic is locked and can not be replied to.