How do you dynamically create a radio button in Javascript that works in all browsers?
<p>Dynamically creating a radio button using eg </p>

<pre><code>var radioInput = document.createElement('input');
radioInput.setAttribute('type', 'radio');
radioInput.setAttribute('name', name);
</code></pre>

<p>works in Firefox but not in IE. Why not?</p>
