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