How can I collect the numbers correctly (jquery)
<p>How can I collect the numbers correctly and put it in another table</p>

<p>Experimented with this but not collected correctly</p>

<pre><code>   &lt;script&gt;

   // A
   $(function() {

var nums=[];
var tot=0;

 $(' .vis ').each(function(i){
var numTxt = $('.vis:eq('+i+') tr &gt; td:eq(1)').text().match(/\d+/g)[0];

var num = (parseInt(numTxt ,10));
   nums.push(numTxt);
   tot+=num

});

  $("#ABS #A").html(tot); 


});

// B
   $(function() {

var nums=[];
var tot=0;

 $(' .vis ').each(function(i){
var numTxt = $('.vis:eq('+i+') tr &gt; td:eq(1)').text().match(/\d+/g)[1];

var num = (parseInt(numTxt ,10));
   nums.push(numTxt);
   tot+=num

});

  $("#ABS #B").html(tot); 

});

//C
   $(function() {

var nums=[];
var tot=0;

 $(' .vis ').each(function(i){
var numTxt = $('.vis:eq('+i+') tr &gt; td:eq(1)').text().match(/\d+/g)[2];

var num = (parseInt(numTxt ,10));
   nums.push(numTxt);
   tot+=num

});

  $("#ABS #C").html(tot); 

});

   &lt;/script&gt;
</code></pre>

<p>body ...</p>

<pre><code>&lt;body&gt;
&lt;table border='2'&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;table class='vis' border='2'&gt;
&lt;tr&gt;
&lt;td&gt;ABC&lt;/td&gt;
&lt;td&gt;
&lt;span class='a'&gt;&lt;/span&gt;
88
&lt;span class='dd'&gt;.&lt;/span&gt;
332&amp;nbsp;
&lt;span class='d'&gt;&lt;/span&gt;
30
&lt;span class='dd'&gt;.&lt;/span&gt;
665&amp;nbsp;
&lt;span class='f'&gt;&lt;/span&gt;
20
&lt;span class='dd'&gt;.&lt;/span&gt;
453 &amp;nbsp;|&amp;nbsp;44432/44432
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;table class='vis' border='2'&gt;
&lt;tr&gt;
&lt;td&gt;ABC&lt;/td&gt;
&lt;td&gt;
&lt;span class='a'&gt;&lt;/span&gt;
822
&lt;span class='b'&gt;&lt;/span&gt;
303
&lt;span class='c'&gt;&lt;/span&gt;
20&amp;nbsp;|&amp;nbsp;44432/44432
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;table class='vis' border='2'&gt;
&lt;tr&gt;
&lt;td&gt;ABC&lt;/td&gt;
&lt;td&gt;
&lt;span class='a'&gt;&lt;/span&gt;
88
&lt;span class='dd'&gt;.&lt;/span&gt;
332&amp;nbsp;
&lt;span class='b'&gt;&lt;/span&gt;
30
&lt;span class='dd'&gt;.&lt;/span&gt;
665&amp;nbsp;
&lt;span class='c'&gt;&lt;/span&gt;
20
&lt;span class='dd'&gt;.&lt;/span&gt;
453 &amp;nbsp;|&amp;nbsp;44432/44432
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;


&lt;tr&gt;
&lt;td&gt;
&lt;table class='vis' border='2'&gt;
&lt;tr&gt;
&lt;td&gt;ABC&lt;/td&gt;
&lt;td&gt;
&lt;span class='a'&gt;&lt;/span&gt;
88
&lt;span class='dd'&gt;.&lt;/span&gt;
332&amp;nbsp;
&lt;span class='b'&gt;&lt;/span&gt;
30
&lt;span class='dd'&gt;.&lt;/span&gt;
665&amp;nbsp;
&lt;span class='c'&gt;&lt;/span&gt;
20
&lt;span class='dd'&gt;.&lt;/span&gt;
453 &amp;nbsp;|&amp;nbsp;44432/44432
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;/td&gt;
&lt;/tr&gt;


&lt;tr&gt;
&lt;td&gt;
&lt;table class='vis' border='2'&gt;
&lt;tr&gt;
&lt;td&gt;ABC&lt;/td&gt;
&lt;td&gt;
&lt;span class='a'&gt;&lt;/span&gt;
555
&lt;span class='b'&gt;&lt;/span&gt;
220
&lt;span class='c'&gt;&lt;/span&gt;
110&amp;nbsp;|&amp;nbsp;44432/44432
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;/td&gt;
&lt;/tr&gt;



&lt;/table&gt;

&lt;br /&gt;&lt;br /&gt;
&lt;table id='ABS' border='2' width="200px"&gt;
&lt;tr&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;B&lt;/td&gt;
&lt;td&gt;C&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td id='A'&gt;0&lt;/td&gt;
&lt;td id='B'&gt;0&lt;/td&gt;
&lt;td id='C'&gt;0&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;/body&gt;
</code></pre>

<p><a href="http://jsfiddle.net/Mqat4/2/" rel="nofollow">http://jsfiddle.net/Mqat4/2/</a></p>

<p>But I want</p>

<p>88.334 + 822 + 88.332 + 88.332 + 555 = 1531.666</p>

<p>And then puts the total numbers here</p>

<pre><code>$("#ABS #A").html(tot);
</code></pre>

<p>and ..
  <br>
30.665 + 303 + 30.665 + 30.665 + 220 = 584.33</p>

<pre><code>$("#ABS #B").html(tot);
</code></pre>

<p>and..</p>

<p>20.453 + 20 + 20.453 + 20.453 + 110 = 191.359</p>

<pre><code>$("#ABS #C").html(tot);
</code></pre>

<p>I want This only (1531.666) </p>

<p>and (584.33)</p>

<p>and (191.359)</p>

<p>I want This , how ??!!</p>

<p><a href="http://www10.0zz0.com/2012/11/25/14/351410283.jpg" rel="nofollow">http://www10.0zz0.com/2012/11/25/14/351410283.jpg</a></p>
