IE8 not working with jQuery .show() and working on all other browsers including ie9
<p>I have the following HTML:</p>

<pre><code>&lt;a class="select_class" style="font-size: 15px;"&gt;&lt;/a&gt; 
&lt;div class="dropDown" style="display: none;" &gt;
    &lt;!--somecode--&gt;
&lt;/div&gt;
</code></pre>

<p>And Javascript:</p>

<pre><code>$('.select_class').click(function(){  
    var isVisible = $('.dropDown').is(':visible'); 

    if (isVisible) { 
        $('.dropDown').hide(); 
    } 
    else { 
        $('.dropDown').show(); 
    } 
    return false; 
});
</code></pre>

<p>It is giving me error that "null is null or not an object." and its working fine in IE9, Firefox and Chrome. Only in IE8 I am getting this issue.</p>

<p>Error is on the following line:</p>

<pre><code>var isVisible = $('.dropDown').is(':visible');
</code></pre>
