Welcome Guest, Not a member yet? Register   Sign In
how to sum all td values ?
#1

Code:
<td><?php echo $row['remun'];?></td>
 <td><?php echo $row['lum'];?></td>

Code:
for example
Ist column   2nd column
100              150
200              150
300              150
Code:
<input type="text"  name="grand_total" id="grand_total" />
Code:
<script>    
 $('#dynamic-table tr').each(function() {
  if (!this.rowIndex) return; // skip first row
  var customerId = this.cells[4].innerHTML;
  alert(customerId);
 $("#grand_total").val(customerId);
});
i get only first row value but i want sum of all fields.
Reply


Messages In This Thread
how to sum all td values ? - by kvanaraj - 10-11-2018, 01:33 AM
RE: how to sum all td values ? - by Pertti - 10-11-2018, 02:15 AM
RE: how to sum all td values ? - by php_rocs - 10-11-2018, 09:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB