Adding Elements to the Other Elements

An important aspect of dynamic web programming is the ability to add content based on user interaction without the need to request a new page from the server. This gives the users a much quicker and more seamless experience. The phrases in this section are designed to illustrate the basics of prepending, appending, and inserting new HTML elements into existing ones.

Get jQuery and JavaScript Phrasebook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.