JQuery - difference between append() and prepend()
append() and prepend() methods: similar to appendChild, except jQuery accepts a string, a DOM element, or a jQuery object as valid arguments. jQuery converts the argument into a text node or element depending on what is passed.
$(”#leftNav ul”).append(”<li>after the last <li></li>”); // adds <li> at the end of <ul>
$(”#leftNav ul”).prepend(”<li>before the first <li></li>”); [...]