Created
November 15, 2014 20:42
-
-
Save whitewhidow/4cecc91d06b24354ac89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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