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