jQuery include hidden divs in 'each'
<p>I need to find a way to include hidden divs in the <code>each</code> statement below. I can't seem to find the answer. It's not just for children of a hidden element so i'm not able to write it based on <code>display:none</code></p>

<pre><code>$("div").each(function(){
    if ($(this).hasScrollBar()){
        $(this).addClass('scrollable');
    }
});
</code></pre>

<p>hasScrollBar Function:</p>

<pre><code>(function($) {
    $.fn.hasScrollBar = function() {
        return this.get(0).scrollHeight &gt; this.innerHeight();
    }
})(jQuery);
</code></pre>
