Your click function fail is due to the fact you hook the event up outside of a doc ready block. You can either change it to use .live or move it after the accordion initialise call.
On Nov 5, 2:48 pm, mehstg1319 <meh...@gmail.com> wrote: > Hi guys > > I am working on the following sitehttp://www.paulbraham.com/test_site/ > and am having a few troubles with my JQuery Accordion. > > Basically, I have turned on Navigation, and inserted three anchors, > #1, #2 and #3 for the three sections that exist. Now in theory, i > could go to index.html#2 and it would load with section 2 open. This > is not happening, and I cannot work out what is wrong with my code. > > Also, I have used the following code to update the hash on the address > bar when a section is selected. This is so it is possible to bookmark > the website with a certain section open. This is also not working. > > $(".menuLink").click(function(event){ > window.location.hash=this.hash; > }); > > If it helps, I found this tutorial, that shows it working perfectly, I > just can't work out what is so different about mine!! > > http://www.michaeljacobdavis.com/tutorials/statesavingaccordion/state... > > Thanks in advance > > Paul