I have var row=valval2 and I tried this:
var row=valval2
$(\"#mainTable tbody\").append(row);
InsertAfter is what you are looking for:
var row='valval2'; $(row).insertAfter("#mainTable tr:first");