Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • so what if there is no tbody in table..?? means there can be row directly inside <table> element, even if without any header. Commented May 18, 2012 at 11:37
  • I would highly recommend you have your markup with <TBody> so its up to the HTML 5 standards, if not then you can always do $(this).append('<tr id="' + rowId + '"> </tr>'); that just appends a row in the table. Commented May 22, 2012 at 22:07
  • I think if you're going to make this a function you could perhaps return a jQuery object for the new row so it's chainable. Commented Dec 22, 2013 at 19:53