[jQuery] Superfish - sf-breadcrumb question
This regards using Superfish in a common navigation element.
I'm finding that I need to have "sf-breadcrumb" on one of the sf-menu
list items in orde for the matching sf-navbar to appear onload. I've
been trying to use jQuery to remove the hard coded class and use
addClass to add "sf-breadcrumb" to the element that matches the
correct section.
ex: Nav element 1 > subnav 1, Nav element 2 > subnav 2, etc.
Here's the script I'm using:
<code>
$jq("#nav").superfish({
pathClass: 'current'}
);
$jq("div#navbar > ul#nav > li#Nav_element_1").removeClass("sfHover sf-
breadcrumb");
// successfully removes classes
$jq("li#" + thisSection).addClass("sfHover sf-breadcrumb");
// adds class to new Nav_element but subnav does not appear until
mouseover
$jq("li#" + thisPage).addClass("current");
// highlights correct element in subnav
</code>
Any ideas on what I'm missing?