5
I have the following table below:
<table class="table table-bordered table-hover" id="customFields">
<thead>
<tr>
</tr>
<tr>
<th width="20%">ID</th>
<th width="75%">Nome </th>
<th width="5%">Qnd.</th>
</tr>
</thead>
<tbody>
<tr valign="top">
</tr>
<tr valign="top" id="148">
<td class="text-center">148</td><input type="hidden" id="itemZone" value="148">
<td>PH_05</td>
<td>2560</td>
</tr>
<tr valign="top" id="149">
<td class="text-center">149</td><input type="hidden" id="itemZone" value="149">
<td>PH_04</td>
<td>2620</td>
</tr>
<tr valign="top" id="156">
<td class="text-center">156</td><input type="hidden" id="itemZone" value="156">
<td>PH_11</td>
<td>2476</td>
</tr>
<tr valign="top" id="155">
<td class="text-center">155</td><input type="hidden" id="itemZone" value="155">
<td>PH_14</td>
<td>2518</td>
</tr>
<tr valign="top" id="158">
<td class="text-center">158</td><input type="hidden" id="itemZone" value="158">
<td>PH_13</td>
<td>2668</td>
</tr>
<tr valign="top" id="154">
<td class="text-center">154</td><input type="hidden" id="itemZone" value="154">
<td>PH_12</td>
<td>2628</td>
</tr>
</tbody>
</table>
I would like to add up all the values of <td>
column Qnd and show right below. What better way to do this?
Using some server side language to render this data?
– Kayo Bruno
@Kayobruno for this situation has to be with front even, js.
– viana
@acklay, do any of the answers answer your question? If not, could leave a comment to the author to give the chance to be suitable, if yes, accept it.
– BrTkCa
@Lucascosta used Jefferson’s answer! But sus worked too. Basically they are all very similar. + 1
– viana
Good! Thank you, it is good for our community to have feedback and when there are answers that work and are suitable to be accepted, they are probably prioritized in search indexing =]
– BrTkCa