jquery make readonly textbox

JavaScript
$("#fieldName").prop("readonly", true);
Source

Also in JavaScript: