What is the most accurate way to add a HTML table row using jQuery?

Can someone please explain what is the most accurate method to add a HTML table row (ex. <tr><td>Some Text</td></tr> ) using JQuery?


  • You can use,
    $('#yourtablediv tr:last').after('<tr>...</tr><tr>...</tr>');

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion