Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - insertafter() method

0 votes
19 views
added Mar 16, 2018 in jQuery by Callum Sergeant (1,480 points)
edited Mar 30, 2018 by LC Marshal

if body has this class, insertafter this

if ($("body").hasClass('page-property-detail')) {
   $('.sticky-prop-header.detail-header.hidden-m').insertAfter('header.header');
   $('#trx-box-detail').hide();
}

1 Response

0 votes
responded May 3, 2018 by LC Marshal Captain (20,510 points)

Move element after other element

$('.forum-how-it-works').insertAfter('.container.m-b-25');
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...