JQuery insertAfter parent div -
below html
<div class="col-xs-12" id="docprop_00" class="docprop"> <div id="documentproperties" class="main_bg"></div> </div>
jquery
newelement.insertafter("div.main_bg:last");
here inserting element after main_bg div, need insert after parent div of main_bg div. how can that??
you can use .after()
method that
$(".main_bg").parent().after(newelament);
Comments
Post a Comment