Radio Button Getting Value
<p>I have some html like this</p>

<pre><code>&lt;form id="reportform" method='post'&gt;
&lt;input type='hidden' id='qid' name='qid' value="&lt;?php echo $id ?&gt;" /&gt;
&lt;span&gt;&lt;input type="radio" id="reporttp" name="reporttp" value="spam" /&gt; spam&lt;/span&gt;
&lt;span&gt;&lt;input type="radio" id="reporttp" name="reporttp" value="attack" /&gt; attacking&lt;/span&gt;
&lt;span&gt;&lt;input type="radio" id="reporttp" name="reporttp" value="nonsense" /&gt; nonsense&lt;/span&gt;
&lt;span&gt;&lt;input type="radio" id="reporttp" name="reporttp" value="other" /&gt; other&lt;/span
&lt;input type="image" name='Submit' value='Submit' src="../Images/buttons/reportButton.png"/&gt;
&lt;/form&gt;
</code></pre>

<p>when i try to read the value in    <code>$('#reportform').submit(function() {</code></p>

<p>i read it as <code>$(reportttp).attr("value")</code>. And then i did some posting (which works fine). The problem is I always get "spam" postedf to me even though i select the other radio boxes. If i switch the first and second radio button around, ill get "attacking".... Could you tell me what is wrong?</p>
