To add an html element to a particular html element, add()
method can be used.
<script>
$("div").add("p").append(" + This is added - ").css("color", "brown");
</script>
Above code snippet add a paragraph (p) element to all div
element of the page. That paragraph element will have “ + This is added - ” text written in brown color.