Readonly Attribut in HTML von JavaScript
document.getElementById("yourID").readOnly = true;
Mr. Samy
document.getElementById("yourID").readOnly = true;