I'm having the hardest time trying to figure out how to use a variable
in a selector. I have the following code that works as part of a basic
accordion menu but with a twist that if someone links to the page
using an internal link then that section of the menu defaults to open.

$(document).ready(function(){
  $('.accordionMenu dl').hide();
  if (window.location.hash) {
    $(window.location.hash+' dl').show();
  }
...
}

Any ideas what I might be doing wrong or just haven't learned yet?

- Justin

Reply via email to