I will try!
I forgot that since addClass and removeClass are jQuery functions, the reference to the object must be written
$(this), instead of
this
The other issue that I discovered while playing with the code is that
returns the absolute URL of the link, and not just the relative URL that I expected;
And now I have just noticed that I forgot the remove
Code:
else{
$(this).removeClass('Active');
}
when changing from when i changed from:
Code:
$('#treemenu1').find('a').click(function(){
to
it is necessary when the code is "onclick" as it needs to reset the previous assignment, but when "onload" the assignments are automatically reset, due to the reloading of the page.
It does no harm, but is completely necessary "onload"
----
Just ask away. if you need more information.