I have html table with format
<div id="divOutputWindow">
<table>
<tbody>
<tr>
<td>/* Set Width 10 Px */ </td>
<td>/* Set Width 20 Px */ </td>
</tr>
<tr>
/* Same for all tr */
</tr>
</tbody>
</table>
</div>
i.e. first td has width 10 px next td 15 px next td 20 px…likewise
What i Tried is
$('#divOutputWindow').find('table').$('tbody > tr > td').css('width', '10px');
<td>inner your#divOutputWindow..each();for that, in the loop you can acces the currentDOM-object by
$(this).$(this).index();for counting..css('attr','value');command to manipulate yourcurrent
<td>. It’s a setter of the css attribute. Don’t forget to put"px"at the end.The Code:
Did it work?
Edit: i saw that @billyonecan already posted something similar, test both examples, mine works (i tested it)