append row after first row in a html table

Posted by loviji on Stack Overflow See other posts from Stack Overflow or by loviji
Published on 2010-03-16T17:41:30Z Indexed on 2010/03/16 17:51 UTC
Read the original article Hit count: 418

Filed under:
|

I have var row=<tr><td>val</td><td>val2</td></tr>. and i tried this:

$("#mainTable tbody").append(row);

but he appends to the end of the table.

I also tried $("#mainTable tr:first").after().append(row);

but have not got a result yet.

Please, help me to understand

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html-table