Problem changing value of <input> "type" attribute
<p>I have an input text box for which attr() doesn't change the type. Here is my code:</p>

<pre><code>&lt;input type="text"&gt;&lt;/input&gt;
&lt;script&gt;$("input").attr("type", "button");&lt;/script&gt;
</code></pre>

<p>What's wrong?</p>
