Manipulating Elements | jQuery Learning Center

PHOTO EMBED

Sat May 29 2021 01:50:38 GMT+0000 (Coordinated Universal Time)

Saved by @ejiwen

// Creating and adding an element to the page at the same time.
$( "ul" ).append( "<li>list item</li>" );
content_copyCOPY

The created element doesn't need to be stored in a variable

https://learn.jquery.com/using-jquery-core/manipulating-elements/