Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Frills Re: Frills

#78571
Capt Otis
Member

Well .prepend and .append add whatever you want to where ever you specified. But they add them inside the tag you specify, not outside.

Say you had

Code:

Then if you ran the javascript…

Code:
$(document).ready(function() {
$ (‘#header’).append(‘ Goodbye’);
});

You would end up with

Code:

Knowing that, can you think of a solution?