How can I add an CSS class to an div depending on what path I am on, including that it should not mather if I had # in it?
<div class="popup">
<ul>
<li><a href="#vs">Example 1</a></li>
<li><a href="#bod">Example 2</a></li>
<li><a href="#ptf">Example 3</a></li>
</ul>
</div><!-- popup -->
<!-- how would I add the class addMe with javascript depending on the site path? It has to work with # -->
Example index.html
$($(this).attr('href')).addClass('addMe');(using jquery).