To deactivate the field:
document.getElementById("FIELD_ID").disabled = true;
To make the field readable only:
$('FIELD_ID').attr("readonly", true)