How can I use jQuery to calculate the total sum of prices for all products in a table with the column name "price"? Once calculated, how do I store this sum in a variable?
<table id ="tab">
<th>Product</th><th>Price</th>
<tr><td>A</td><td>752</td></tr>
<tr><td>B</td><td>652</td></tr>
<tr><td>C</td><td>1000</td></tr>
</table>