jquery set readonly true code example Example: add readonly attribute jquery $(input).attr('readonly', true);