document.getElementById('InputFieldID').readOnly = true;
document.getElementById("myText").readOnly = true;