How to call submit buttons through javascript!

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 using javascript
<%= end_form_tag %>


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 S. [email protected]: