title: JQuery add class based on height of element
body: <p>I have a table in an app with data and the thead element in the table has a variable height depending on what user is logged in and using the application. So sometimes the thead element is narrow in height and sometimes it's much taller. Note that there are only two heights that are possible. </p>
  
  <p>I'd like to somehow use jquery to measure the height of the thead element and then add a class so it might come out like this:</p>
  
  <p>Narrow: </p>
  
  <pre><code>&lt;thead class="narrow"&gt;
  </code></pre>
  
  <p>Tall:</p>
  
  <pre><code>&lt;thead class="tall"&gt;
  </code></pre>
  
  <p>I am not even sure if this is possible. Thanks.</p>