I\'m trying to open an accordion div from an external link. I see the \"navigation: true\" option but I\'m not sure how to implement it. Do you give each div an id and call
The navigation
option which many of these answers refer to was deprecated in jQuery UI 1.9 and removed in 1.10. The reason given was:
This functionality was disabled by default and is only one of many ways that you might want to determine which panel to activate on initialization. As such, we've deprecated this in favor of just handling the logic outside of accordion and setting the active option appropriately.
So coders using the newer versions of jQuery UI will need to write their own code to handle this feature.
For my site, I accomplished this with a JavaScript switch
statement just before the
tag. (I'm not an experienced coder, so others should feel free to improve this answer.)
Here's the corresponding HTML:
Preschool
Preschool content
Kindergarten
Kindergarten content
1st Grade
First grade content