I have var row=<tr><td>val</td><td>val2</td></tr>
and I tried this:
$("#mainTable tbody").append(row);
but it appends to the end of the table.
Also I tried $("#mainTable tr:first").after().append(row);
But have not got a result yet.
Please, help me to understand.