1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

JavaScript: How to Check if Div is Empty or has Children Tags

  1. Clicks today:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    0.00/5

JavaScript » Using Third Party Libraries — about 2 years ago
If you have an empty div or other element that you want it removed if does not contain any html tags or text inside it, here is a quick guide how to do it with jQuery. I will also show you how to handle empty tags using CSS only.

Comments

Your Comment

You must be logged in to post a comment.