Skip to content

Instantly share code, notes, and snippets.

@lennartkoopmann
Created December 16, 2010 16:08
Show Gist options
  • Save lennartkoopmann/743571 to your computer and use it in GitHub Desktop.
Save lennartkoopmann/743571 to your computer and use it in GitHub Desktop.
$("#loginform").bind("submit", function() {
vals = [
"Releasing gorillas",
"Mounting party hats",
"Enraging gorillas",
"Preparing gorilla party"
]
button = $("#submit");
button.attr("disabled", "disabled");
button.val(vals[Math.floor(Math.random() * vals.length)] + "...");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment