Skip to content

Instantly share code, notes, and snippets.

@whitewhidow
Created November 15, 2014 20:42
Show Gist options
  • Save whitewhidow/4cecc91d06b24354ac89 to your computer and use it in GitHub Desktop.
Save whitewhidow/4cecc91d06b24354ac89 to your computer and use it in GitHub Desktop.
<script>
$('.btn-danger').click(function() {
$(this).removeClass('confirm');
$(this).text("Are you sure?");
$(this).unbind();
return false;
});
</script>
Will bind to all bootstrap warning buttons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment