You can attach any behavior you want to use with jQuery.
Here is your button
<button class="my-button">click this</button>
Here is your jQuery
$("button.my-button").click(function(){
If you want to use the submit button on the form, here is a more unobtrusive way:
$("#some-form input:submit").click(function(){ // do something special! // prevent default behavior of button return false; });
source share