disable button in jquery
<p>My page create multiple buttons as id = 'rbutton_"+i+"'
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>
