appending a function to an element code example Example: jquery append $("p").append(" <b>Appended text</b>.");