View Single Post
Old 06-19-2012, 04:48 AM   PM User | #23
ajoros
New Coder

 
Join Date: Jun 2012
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
ajoros is an unknown quantity at this point
Quote:
Originally Posted by Lerura View Post
I finally found the right solution: (a cup of coffee made the difference )
Code:
<script type="text/javascript">
$(function(){
$('#treemenu1').find('a').each(function(){
if (this.href==location.href){
$(this).addClass('Active');
}else{
$(this).removeClass('Active');
}
});
});
</script>
IT WORKS! Can you explain to me what was wrong before and what it does now? That is how I learn Thanks!
ajoros is offline   Reply With Quote