[jQuery] Re: Append before closing tag

2009-04-19 Thread MauiMan2
Thanks.

[jQuery] Re: Append before closing tag

2009-04-19 Thread mkmanning
Sorry, it's late. I see now you're showing where each method inserts content :P On Apr 19, 12:38 am, Josh Powell wrote: > Below is the call and where the code passed into the call would place > the content. > > $('#aP').before(); > > $('#aP').prepend(); > lorem ipsim dolor sit amet... > $('#aP'

[jQuery] Re: Append before closing tag

2009-04-19 Thread mkmanning
Um, I have no idea what all that is for, but append already does exactly what you're asking: it appends html as the last child of the parent. $('p').append('http://www.hotbot.com";>Remember Me?'); On Apr 19, 12:38 am, Josh Powell wrote: > Below is the call and where the code passed into the c

[jQuery] Re: Append before closing tag

2009-04-19 Thread Josh Powell
Below is the call and where the code passed into the call would place the content. $('#aP').before(); $('#aP').prepend(); lorem ipsim dolor sit amet... $('#aP').append(); $('#aP').after(); On Apr 18, 11:49 pm, MauiMan2 wrote: > Does jQuery provide a way to append an element immediately before