How do I detect IE8, using JQuery?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2202305/how-do-i-detect-ie-8-with-jquery">how do i detect ie 8 with jquery</a>  </p>
</blockquote>



<p>Hi All,</p>

<p>I was on here looking for a JQuery snippet to detect IE8. This is what I found, see below:</p>

<pre><code>    if(jQuery.browser.version.substring(0, 2) == "8.") { 
        $('#step-1').css({'margin-left':'8px'});
     }
</code></pre>

<p>I found this but it doesnt seem to be working...Can someone advise me where I might be going wrong...or have other suggestions.</p>

<p>Thanks</p>
