how to get the value of a checked checkbox
<p>I have a form like below:</p>

<pre><code>   &lt;form id="toppings_div" name="form1" method="post" action=""&gt;
                            &lt;table width="355"&gt;
                              &lt;tr&gt;
                                &lt;td&gt;
                                  &lt;input type="checkbox" value="Cheese" /&gt;
                                  &lt;label&gt;Extra cheese&lt;/label&gt;
                                &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/from&gt;
</code></pre>

<p>I was just wondering how I can get to the value of the checkbox if it's checked.</p>

<p>thanks</p>

<pre><code>        alert($('#toppings_div').children().children().children().children(':checked').val());
</code></pre>

<p>using the code above gives me an undefined answer, </p>

<p>thanks</p>
