atributo readonly em html por javascript
document.getElementById("yourID").readOnly = true;
Mr. Samy
document.getElementById("yourID").readOnly = true;