title: Hide div if another Div is empty
body: <p>Im trying to hide a div if another div is empty, but for some reason it wont work as I want.</p>
  
  <p>so basically I want to hide the <code>&lt;div class="more_post"&gt;</code> if the <code>&lt;div class="last_post"&gt;</code> element is empty</p>
  
  <pre><code>&lt;div id="toggle-view"&gt;
          &lt;div class="more_post"&gt;
              &lt;h5&gt;Load more&lt;/h5&gt;
          &lt;/div&gt;
          &lt;ul class="toggle-view"&gt;
              &lt;div class="toggle""&gt;                     
                  &lt;div class="last_post"&gt; &lt;/div&gt;
              &lt;/div&gt; 
          &lt;/ul&gt;   
      &lt;/div&gt;
  </code></pre>
  
  <p>Jquery</p>
  
  <pre><code>if($("#toggle-view ul.toggle-view .toggle .last_post").length ==0)
      {
      $("#toggle-view .more_post").hide();
      }
  </code></pre>