I have the following table, with two <td>---</td>
<table>
<tr>
<td>Item 1</td>
<td>Item 2</td>
<td>Item 3</td>
</tr>
<tr>
<td>Item 1</td>
<td>---</td>
<td>---</td>
</tr>
</table>
What I'm looking for is to detect if the tr has 3 td tags, in case it only has 2 or 1, the missing td tags are automatically added.
For this example I only used 3 td for each tr, but I hope to be able to use more td. I don't know if it's possible, or if I explained myself correctly, but I hope someone can guide me.