how to get the selected radio buttons value
<p>I have a simple from with 2 radio buttons and I need to get their values if they are checked.</p>

<pre><code>       &lt;form class="descriptions" id="collection"  method="post" action=""&gt;
                          &lt;table width="200"&gt;
                              &lt;tr&gt;
                                &lt;td&gt;
                                  &lt;label&gt;Collection&lt;/label&gt;
                                  &lt;input type="radio" value="collection" name="collection" /&gt;
                       &lt;/td&gt;
                                &lt;td&gt;
                                  &lt;label&gt;Delivery&lt;/label&gt;
                                  &lt;input type="radio" value="delivery" name="collection"    /&gt;
                                &lt;/td&gt;  
                            &lt;/tr&gt;
                         &lt;/table&gt;

                &lt;/form&gt;

     var delivery = "";
     delivery = $('input:radio:checked').val();
if(delivery == 'delivery') {
 meal_deal7 = 11.49;
}else {
 meal_deal7 = 9.99
}
</code></pre>

<p>the value of meal_deal7 is always 9.99,
am I doing sth wrong.</p>

<p>thanks</p>
