jQuery - select the second row in a table?
Use the nth-child selector. See http://api.jquery.com/nth-child-selector/
$('.myclass tr:nth-child(2)')
Use the :first
selector in combination with the insertAfter()
function:
$("TheElementToInsert").insertAfter(".myClass tr:first");