What is jQuery syntax for adding rows between existing rows of an HTML table?
<Table id="TEST"> <tr>1</tr> <tr>2</tr> </table>
I want to add
<tr>xx</tr>
between 1 and 2
eg:
<tr>1</tr> **<tr>xx</tr>** <tr>2</tr>
and note that there is no identifier for strings.
Correction of the final appearance
front
<table id=Test><tr> <td>1 </td> </tr><tr> <td>2 </td> </tr></table>
after
<table id=Test><tr> <td>1 </td> </tr> <tr> <td>xx </td> </tr> <tr> <td>2 </td></tr></table>
source share