Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery if div is empty

  function isEmpty( el ){
      return !$.trim(el.html())
  }
  if (isEmpty($('#element'))) {
      // do something
  }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #div #empty
ADD COMMENT
Topic
Name
9+9 =