I have a rails form with a submit button, but I'm wondering if it's possible to make this submit button 1) Post to controller create action and also 2) Execute Javascript
Here are the two buttons I essentially want to combine:
1. <%= f.submit "Go!", class: "btn btn-primary btn-large btn-block" %>
2. <a href="javascript:ExtInstall()" class="btn btn-default btn-large btn-block" role="button">Download our Google Chrome extension</a>