Any better condition checking?
<p>I have one functionality where I am hiding few rows of a table on pageload.After that on click of a span, I am calling the toggle() to dispaly and hide rows in alternate click.Now I need to do some additional work after the toogle(), for that I am doing one check</p>

<pre><code>            $myRows.toggle();

            if ($myRows.css('display') === 'none') {
               //my code
            }
            else {
                     //mycode
                   }
</code></pre>

<p>Now can I have some better checking instead of   <strong>if ($myRows.css('display') === 'none')</strong>, its working fine, but can I go for any better condition checking.</p>
