We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14323
    • 7 Posts
    I have a chunk I’ve made which I’m using as my site menu. It’s an animated menu driven by jQuery. The menu is broken into categories with sub-menu elements off of a main button. If you go to a page the proper button should be made active when the page loads.

    I could do this by enumerating each resource that can activate a button like this:

    if(loc.indexOf("[(base_url)][~3~]") >= 0 or loc.indexOf("[(base_url)][~4~]") or ......)

    But I was wondering if it’s possible to do something like:

    if( getParentId([(base_url)][~page~]) == 3)