Adding Rows

Learn how to dynamically add new rows using JavaScript so that no page refreshes are needed.

Re-use fragments

Ideally, we want to reuse the fragment we’ve already used for generating the page. This will ensure that the layout and functionality of the rows that are generated at page render are exactly the same as the rows we add dynamically. To make it possible to reuse the fragment, we have to alter it slightly:

Get hands-on with 1000+ tech skills courses.