jQuery: how do I add a div to the end of my HTML file? -
I saw in the documentation .append allows you to add elements to an element but I & lt; / Body & gt;
You can use it before:
$ ('Body'). Append ('& lt; div & gt; footer & lt; / div & gt;');
But also:
$ ('
Footer & lt; / div & gt;'). Annex ('body'); Html ($ ('body'). Html () + '
Footer ;);
Reference here with difference:
Comments
Post a Comment