xxxxxxxxxx
document.getElementById("id").disabled = true;
xxxxxxxxxx
//javascript disable
document.getElementById("id").disabled = true;
//javascript enable
document.getElementById("id").disabled = false;
//jquery disable
$('#id').attr("disabled", true);
//enable
$('#id').attr("disabled", false);
xxxxxxxxxx
document.getElementById("myText").disabled = true;// <input id = "myText"/>
xxxxxxxxxx
//javascript disable
document.getElementById("id").disabled = true;
//javascript enable
document.getElementById("id").disabled = false;