Another way you could do this with multiple lines would be to
use .insertAfter() . Something like this maybe:
$(')
.append('sample')
.insertAfter('p');
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Aug 3, 2007, at 4:23 AM, Klaus Hartl
hi,
nice trick!
cheers,
james
On Aug 3, 4:23 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote:
> james_027 wrote:
> > hi,
>
> > I am trying to use the jQuery .after() function. I have something like
> > this ..
>
> > $('p').after('sample');
>
> > I want to transform it into something like this to mak
james_027 wrote:
hi,
I am trying to use the jQuery .after() function. I have something like
this ..
$('p').after('sample');
I want to transform it into something like this to make the code much
easier to read
$('p').after('
sample
');
how can I achieve this?
Thanks
james
3 matches
Mail list logo