title: how to check div tag its empty or not?
body: <p>how to check div tag its empty or not by using java script?   </p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="txt"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>JS</strong></p>
  
  <pre><code>&lt;script&gt;
      if(txt != null ){
          document.write("There is content in that div");
      }else{
          document.write("There is NO content in that div");
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>I already tried, but shows always "there is a content in this divtag".</p>