Home › Forums › JavaScript › Frills › Re: Frills
June 23, 2010 at 10:07 am
#78571
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:
Hello
Then if you ran the javascript…
Code:
$(document).ready(function() {
$ (‘#header’).append(‘ Goodbye’);
});
$ (‘#header’).append(‘ Goodbye’);
});
You would end up with
Code:
Hello Goodbye
Knowing that, can you think of a solution?