hi,

I am trying to use the jQuery .after() function. I have something like
this ..

$('p').after('<p class="main"><a href="#">sample</a></p>');

I want to transform it into something like this to make the code much
easier to read

$('p').after('
    <p class="main">
        <a href="#">sample</a>
    </p>
');

how can I achieve this?

Thanks
james

Reply via email to