jQuery: Multiple Checkbox Select and price determination <p>I'm trying to create a "digital breakfast/lunch/dinner list", where over the space of 2 weeks parents can select whether or not their child needs to have breakfast, lunch and/or dinner. These values will be multiplied against different rates for each meal to determine an invoice amount. The parent clicks a submission button which returns the total value. Here's what I've got so far:</p> <p>Web Form:</p> <pre><code>&lt;input type="checkbox" name="breakfast"&gt; &lt;input type="checkbox" name="lunch"&gt; &lt;input type="checkbox" name="dinner"&gt; </code></pre> <p>There are 14 days, with this repeated for each. So in total I have 42 checkboxes.</p> <p>jQuery:</p> <pre><code>var numBreakfast = $("input:checkbox[name='breakfast']").size(); var numLunch = $("input:checkbox[name='lunch']").size(); var numDinner = $("input:checkbox[name='dinner']").size(); var totalPrice = numBreakfast * priceBreakfast + numLunch * priceLunch + numDinner * priceDinner </code></pre> <p>I think I've got this correct, but when I call the total I keep getting $0.00 returned.</p> <p>Any ideas?</p>