add readonly attribute jquery to all input type and select box code example Example: add readonly attribute jquery $(input).attr('readonly', true);