give desiabeld true or false in button html code example
Example 1: javascript how to disable a button
document.getElementById("Button").disabled = true;
document.getElementById("Button").disabled = false;
$('#Button').attr('disabled','disabled');
$('#Button').removeAttr('disabled');
Example 2: how to remove disable from input onclick
<script type="text/javascript">
$(function() {
$(".input").attr("disabled", true);
$("td:has(.input)").click(function() {
$(".input", this).removeAttr("disabled");
});
});
</script>