I have a solution to solve this by giving the class name "btn" to all button and applying the following jquery code on click of it. :
$(document).ready(function () {
($(".btn").click(function () {
$("#" + this.id).prop('disabled', true);
$(".btn").not(this).prop('disabled', false);
}));
});