summary width
summary width
I got a table, first tr got 10 td, how to get the sum of the first three td's width
all I know is like
- var $sum = 0;
- $('tr:first td:lt(3)').each(function() {
- $sum += $(this).width();
- });
console.log($sum);
is there any solution via jQuery?