Sign in
Log inSign up

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?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2025 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct