jquery input readonly code example
Example 1: jquery make readonly textbox
$("#fieldName").prop("readonly", true);
Example 2: add readonly attribute jquery
$(input).attr('readonly', true);
$("#fieldName").prop("readonly", true);
$(input).attr('readonly', true);