check exact url using jquery if statements are dependent on whole url
<p>I am using following code</p>

<pre><code>if(window.location.href.indexOf("6-girl") &gt; -1){

$("#something").show();

}

if(window.location.href.indexOf("6m") &gt; -1){

$("#else").show();

}
</code></pre>

<p>Url from both the condition are different still the #something is showing on both pages.why? I am facing same problem with lot of url's. I want to show #something in only "6-girl" url and #else into "6m" only.</p>
