Skip to content

Instantly share code, notes, and snippets.

@litch
Created January 28, 2013 22:07
Show Gist options
  • Save litch/4659622 to your computer and use it in GitHub Desktop.
Save litch/4659622 to your computer and use it in GitHub Desktop.
javascript to have a button do something but still pass through
$("#my_button_id").click(function () {
call_my_other_js;
});)
$("#my_button_id").click(function () {
$("form#formID").submit();
});)
$("#my_button_id").click(function () {
do_thing_3_for_kicks;
});)
$("#my_button_id").click(function () {
call_my_other_js;
$("form#formID").submit();
});)
$("#my_button_id").click(function () {
call_my_other_js;
});)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment