Adding Content
append, prepend, before and after insert content.
Example
$("ul").append("<li>last</li>");
$("ul").prepend("<li>first</li>");
$("#a").before("<hr>");
$("#a").after("<p>after</p>");Exercise
Add to the end.
$("ul").("<li>x</li>")
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.