Hide & Show buttons
Hide & Show buttons
by labanino
HTML
<link rel="stylesheet" href="http://jasny.github.io/bootstrap/assets/css/bootstrap.css">
<button class="btn default-text">Assign patient to me</button>
<button class="btn new-text">Un-assign patient</button>
JavaScript
$('.new-text').hide();
$('.default-text').click(function () {
$('.new-text').show();
$('.default-text').hide();
});
$('.new-text').click(function () {
$('.default-text').show();
$('.new-text').hide();
});