why the code in jquery doesn't work?
<p>the url is as this: <code>http://example.com/download/</code>  </p>

<pre><code>var pathname = window.location.pathname;
if(pathname=='download/'){
$("#subnav-content div:first").hide();
$("#subnav-content div:second").show();
}
</code></pre>

<p>why the above code in jquery doesn't work? i want to when the url is <a href="http://example.com/download/" rel="nofollow">http://example.com/download/</a>. show the secong div. </p>

<p>ps*<em>:does this check affect the site performance?</em>*</p>
