My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Remove or hide a li>div>i if it's empty

Nikhil Dange's photo
Nikhil Dange
·Sep 13, 2019

<li class="tweet" style="display: list-item;"> <div class="tweet_text_1"> <i class="fa fa-twitter" aria-hidden="true"></i>     </div> </li> How to check whether li>div>i>is empty or not and remove li tag on empty in jQuery, CSS?