Dynamically generated radiobutton by jQuery cannot be selected in IE6
<p>I need to dynamically generate radio or checkbox by jQuery.<br />
I use the following code:  </p>

<pre><code>var type = "radio"; // maybe checkbox
$('&lt;input type="'+ type +'"&gt;').attr({
            name: "ename", value: "1"
})
</code></pre>

<p>However, the radio generated cannot be selected in IE6(other browsers are fine).
What should I do?</p>

<p>marcc's answer solves my problem.</p>
