title: multiplying all numbers inside different <p> and then sum it up
body: <p>I have a shoppingcart page and each product that are displayed on the shoopingcart page is inside a div box. </p>
  
  <p>Each div box have a price that is displayed like this <code>&lt;p id="price"&gt;599&lt;p&gt;</code></p>
  
  <p>How can I grab all the numbers inside these <p> and then sum it up and display the total in another <code>&lt;p&gt;&lt;/p&gt;</code> ?</p>
  
  <p>Depending on how many products are in the shoppingcart that many div boxes are generated. Lets say we have 2 products which mean 2 div boxes:</p>
  
  <pre><code>&lt;div id="holder@(model.ProductId)" class="holder"&gt;  
               &lt;img src="@Html.DisplayFor(modelItem =&gt; item.Image)" alt="" /&gt;
                 &lt;div class="productinfo"&gt;
                 &lt;h2&gt;Bike&lt;/h2&gt; 
                 &lt;p&gt;It will take 24 hours to deliver&lt;/p&gt;    
                 &lt;/div&gt;
                  &lt;div class="productprice"&gt;     
                  &lt;p class="price"&gt;599&lt;p&gt;                                    
                 &lt;/div&gt;                                   
  </code></pre>
  
  <p></p>
  
  <p>second one:</p>
  
  <pre><code>&lt;div id="holder@(model.ProductId)" class="holder"&gt;  
               &lt;img src="@Html.DisplayFor(modelItem =&gt; item.Image)" alt="" /&gt;
                 &lt;div class="productinfo"&gt;
                 &lt;h2&gt;car&lt;/h2&gt; 
                 &lt;p&gt;It will take 24 hours to deliver&lt;/p&gt;    
                 &lt;/div&gt;
                  &lt;div class="productprice"&gt;     
                  &lt;p class="price"&gt;1599&lt;p&gt;                                     
                 &lt;/div&gt;                                   
  </code></pre>
  
  <p></p>
  
  <p>this is the button where this function should get triggered:</p>
  
  <pre><code>&lt;input type="button" value="Update" class="a" /&gt;
  </code></pre>
  
  <p>How can I do this with Jquery, somehow I need to check how many <code>&lt;p class="price"&gt;&lt;p&gt;</code> there is and then eval() them and then multiply them and store the total in a different<code>&lt;p&gt;&lt;/p&gt;</code>?</p>
  
  <p>Any kind of help is appreciated</p>