This is my code.
<table>
<tbody>
<tr>
<td>Some Data</td>
<td>Some Data</td>
<td>Some Data</td>
<td>Some Data</td>
</tr>
</tbody>
</table>
I want to add </tr><tr> in between the row programatically at runtime:
<table>
<tbody>
<tr>
<td>Some Data</td>
<td>Some Data</td>
</tr>
<tr>
<td>Some Data</td>
<td>Some Data</td>
</tr>
</tbody>
</table>
I tried $('tr td').eq(1).after('</tr><tr>');, but it instead gave:
<table>
<tbody>
<tr>
<td>Some Data</td>
<td>Some Data</td>
</tr/>
<tr/>
<td>Some Data</td>
<td>Some Data</td>
</tr>
</tbody>
</table>
So, how can I achieve the required functionality?