title: Detecting browser with JQuery
body: <p>I am trying to use</p>
  
  <pre><code>    jQuery(document).ready(function () {
          if (!jQuery.browser.msie &lt;= 7.99) {
                  jQuery('#element').css('display', 'block');
          }
      });
  </code></pre>
  
  <p>But it doesn't appear to work ? What am I doing wrong ?</p>
  
  <p>Thx</p>
  
  <p><strong>Edit: Use conditional comments</strong></p>
  
  <pre><code>&lt;!--[if !IE]&gt;
  &lt;!--[if lt IE 8]&gt; 
  
  //do stuff
  &lt;![endif]--&gt;
  &lt;![endif]--&gt;
  </code></pre>