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

jQuery - check if element is exist (simplify version)

0 votes
6 views
added Nov 27 in jQuery by lcjr Sergeant (1,540 points)
var propPlacement = $('body.page-content .news-body.content p:nth-child(4)'), 
    newsTopProp = $('body.page-content .featured-properties');
if(propPlacement) {
  newsTopProp.appendTo(propPlacement);
}

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...