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

jQuery - check if text in element is empty with .text

0 votes
36 views
added Dec 18, 2020 in jQuery by lcjr Second Warrant Officer (3,820 points)
else if($(newsAuthor).text() == '') {
  newsMeta.css({'border-top': '1px solid #fff'});
  newsMeta.css({'padding-left': '0'}); 
  firstP.prepend(newsMeta);
  newsMeta.show();
}

 

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.
...