Go Back
  • Persistent jQuery Accordion with Initial Index

    I just spent a fair amount of time to get a jQuery UI accordion working to my needs.

    Here were the requirements:

    • had to allow for an initial item to be open that was not the first one
    • active item had to stay active after a postback
    • had to play nicely with other JavaScript content

    Here is what I ended up with:

    First, references to JavaScript files, which we have on our own CDN:

    • jquery-current.min.js ...