<?php
$date1 = new DateTime("now");
$date2 = new DateTime("2014-08-01 00:00:00");
if ($date1 < $date2)
{
echo('Hello, world!');
}
else
{
echo('Bye, world!');
}
?>
<button class="btn">1</button>
<button class="btn disabled" disabled>2</button>
<button class="btn disabled" disabled>3</button>
var buttons = $(".btn");
buttons.eq(0).click(function() {
buttons.filter(".disabled").removeClass("disabled").attr('disabled',false);
$(this).addClass("disabled").attr('disabled',true);
});
.tooltip-inner {
white-space:pre-wrap;
}