title: Disable button in jQuery
body: <p>My page creates multiple buttons as <code>id = 'rbutton_"+i+"'</code>. Below is my code:</p>
  
  <pre><code>&lt;button type='button' id = 'rbutton_"+i+"' onclick=disable(i);&gt;Click me&lt;/button&gt;
  </code></pre>
  
  <p>In Javascript</p>
  
  <pre><code>function disable(i){
      $("#rbutton'+i+'").attr("disabled","disabled");
  }
  </code></pre>
  
  <p>But it doesn't disable my button when I click on it. </p>