[ACCEPTED]-jQuery .append outside tag-jquery
Accepted answer
You should be able to do this using after()
instead 1 of append()
$('span.head-span').parent().addClass('head-h').after('<div class="clx" />')
If you want the div after the header, don't 1 append it, use the after
method:
$('h1').after('<div class="clx" />');
Use the after
method, like this:
$('span.head-span').parent().addClass('head-h').after('<div class="clx" />')
0
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.