Technically $('')
will 'create' a div
element (or more specifically a DIV DOM element) but won't add it to your HTML document. You will then need to use that in combination with the other answers to actually do anything useful with it (such as using the append()
method or such like).
The manipulation documentation gives you all the various options on how to add new elements.