102
rated 0 times
[
104]
[
2]
/ answers: 1 / hits: 9660
/ 11 Years ago, mon, january 27, 2014, 12:00:00
I am trying to extract the td values belonging a td rowspan.
<!DOCTYPE html>
<html>
<body>
<table border=1>
<tr>
<th>Month</th>
<th>Expenses</th>
<th>Exp/ Divided</th>
</tr>
<tr>
<td rowspan=2>January</td>
<td rowspan=2>$100</td>
<td>$50</td>
</tr>
<tr>
<td>$50</td>
</tr>
<tr>
<td rowspan=3>February</td>
<td rowspan=3>$400</td>
<td>$150</td>
</tr>
<tr>
<td>$150</td>
</tr>
<tr>
<td>$100</td>
<tr></tr>
</table>
</body>
</html>
So if I click on January for example I have to extract its divided expenses: $50, $50
if I click on February I have to extract its divided expenses: $150, $150, $100
More From » jquery