Enable/disable a button in pure javascript : <p>I want to enable/disable a button without jquery. Here's my code:</p>

<pre><code>btn.setAttribute("disabled", true);
</code></pre>

<p>Works. But this doesn't -- a button remains disabled:</p>

<pre><code>btn.setAttribute("disabled", false);
</code></pre>
