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