JavaScript
Article
By Sam Deering

jQuery Add Row to a Table

By Sam Deering

Simple jQuery code snippet to add a row to a table. It uses the :last selector to add the row at the end of the table using jQuery’s .after() function.

$('#myTable tr:last').after('...');

Also see: jQuery HTML Table Plugins

--ADVERTISEMENT--

Recommended
Sponsors
The most important and interesting stories in tech. Straight to your inbox, daily. Get Versioning.
Login or Create Account to Comment
Login Create Account