title: check if div has overflow
body: <p>I'd like to check if a <code>&lt;div&gt;</code> has overflow and show a link if it does. I have three divs with same classes. I want to check each div for overflow and show or hide link. This is my html:                      </p>
  
  <pre><code>&lt;div id="tab-1" class="tab-panel active" &gt;
    &lt;div&gt;
      LETO 2015: ALNJA
      &lt;br&gt;
      &lt;br&gt;
      Alanja - grad sa mnogo različitih lica. Ovaj grad, smešten u istočnom delu turske obale, 
    &lt;/div&gt;
    &lt;a id="morelink"&gt;more&lt;/a&gt;
  &lt;/div&gt;
  &lt;div id="tab-2" class="tab-panel"&gt;
    &lt;div&gt;
      Alanja - grad sa mnogo različitih lica. Ovaj grad, smešten u istočnom delu turske obale, 
    &lt;/div&gt;
    &lt;a id="morelink"&gt;more&lt;/a&gt;
  &lt;/div&gt;
  &lt;div id="tab-3" class="tab-panel"&gt;
    &lt;div&gt;
      Alanja - grad sa mnogo različitih lica. Ovaj grad, smešten u istočnom delu turske obale, 
    &lt;/div&gt;
    &lt;a id="morelink"&gt;more&lt;/a&gt;
  &lt;/div&gt;`
  </code></pre>
  
  <p>css:</p>
  
  <pre><code>  .tab-panel {
     position:relative;
     background-color: #f8f8f8;
     color: #000;
     height: 276px;
     line-height: 20px;
     padding:20px;
    }
   .tab-panel div {overflow: hidden;height: 100%;}
  </code></pre>