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