How can I add multiple paragraph tag, newly tag on top within div container.
A more elegant way without jQuery:
var container = document.getElementById('pcontainer'); container.insertBefore(document.createElement("p"), container.firstChild);
This assumes there is already an element in the container btw.