How do access to element by name in javascript?
<p>A page has elements without id - only with names. How to access them by javascript like this?</p>

<pre><code>document.getElementById('id').value := "...";
</code></pre>

<p><strong>UPDATED:</strong></p>

<p>Thanks to all! Is it possible to access then to element with specified value (radiobutton)?</p>

<pre><code>&lt;nobr&gt;&lt;label&gt;&lt;input style="vertical-align:middle" type="radio" name="name" value="value1" checked="checked"/&gt;&lt;span style="vertical-align:middle" class="label"&gt;value1&lt;/span&gt;&lt;/label&gt;&lt;/nobr&gt;&lt;br/&gt;
&lt;nobr&gt;&lt;label&gt;&lt;input style="vertical-align:middle" type="radio" name="name" value="value2"/&gt;&lt;span style="vertical-align:middle" class="label"&gt;value2&lt;/span&gt;&lt;/label&gt;&lt;/nobr&gt;&lt;br/&gt;
</code></pre>
