So basically on one page I have a Rails form that has a JQuery link on it, and in the JQuery handler i have the line
$('#form_name').get(0).submit();
which submits the Rails form after the JavaScript work is done.
My question is, on a different page, I have a button that I want called instead of the form. What is the correct JQuery/JS for that? Thank you
Aucun commentaire:
Enregistrer un commentaire