listo ya funciona todo muy bien muchas gracias por la ayuda...les dejo el codigo por si a alguien le sirve
    
Código Javascript
:
Ver original- <script type="text/javascript"> 
- function calcular(){ 
-             var importe=parseFloat($(this).find("input[name=importe]").val()); 
-             var cantidad=$(this).find("input[name=cantidad]").val(); 
-             $(this).find("[class=total]").html((parseFloat(importe)*parseFloat(cantidad)).toFixed(2)); 
-   
-             // calculamos el total de todos los grupos 
-             var total=0; 
-             $(".grupo .total").each(function(){ 
-                 total=total+parseFloat($(this).html()); 
-             }) 
-             $(".total .total").html(total.toFixed(2)); 
-              
- } 
- $(document).ready(function(){ 
-     calcular(); 
-  $(".grupo").keyup(calcular); 
- }); 
-     </script> 
Código HTML:
Ver original- <table align="center" style="text-align:center;" width="90%" border="1" cellspacing="0"> 
-     <th scope="col">- nombre </th>
 
-     <th scope="col">- cantidad </th>
 
-     <th scope="col">- precio </th>
 
-     <th scope="col">- Subtotal </th>
 
-     <?php do { ?> 
-       <td><?php echo $row_carrito['nombre_producto']; ?></td> 
-       <td><input type="text" name="cantidad" value="<?php echo $row_carrito['cantidad']; ?>- " autocomplete="off" /> </td>
 
-       <td><input style="border:0; background:none; width:55px; text-align:center;" readonly="readonly" type="text" name="importe" value="<?php echo $row_carrito['precio']; ?>- " /> </td>
 
-       <td><span class="total"><?php echo $row_carrito['precio']; ?></span></td> 
-     <?php } while ($row_carrito = mysql_fetch_assoc($carrito));  ?>