Hello, I am working on a order form. I now have the following:
<table width="250" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="40%"><strong>Knuffel</strong></td> <td width="30%"><strong>Aantal</strong></td> <td width="30%"><strong>Prijs</strong></td> </tr> <tr> <td>Aapje</td> <td><input name="aantal_1" type="text" style="width:25px" value="0" /></td> <td>€ <span id="total_1">0.00</span> </td> </tr> <tr> <td>Beertje</td> <td><input name="aantal_2" type="text" style="width:25px" value="0" /></td> <td>€ <span id="total_2">0.00</span> </td> </tr> <tr> <td>Hondje</td> <td><input name="aantal_3" type="text" style="width:25px" value="0" /></td> <td>€ <span id="total_3">0.00</span> </td> </tr> <tr> <td>Olifantje</td> <td><input name="aantal_4" type="text" style="width:25px" value="0" /></td> <td>€ <span id="total_4">0.00</span> </td> </tr> </table> What i want is to get the subtotal of a product and the total price. Is there a easy way for this using jQuery? <span id="total_4">0.00</span> would change in the price for the product * qty == aantal_1 And <h3>Totaalbedrag: € <span id="totaalprijs">0.00</span></h3> would change in the total price of all the products. Any one how can assist me in this? Erwin