add class disabled on button jquery code example Example: jquery disable button function disable(i){ $("#rbutton_"+i).prop("disabled",true); }