Jquery accordion, opening a box based on href?

Oh I see Jeff reported that the current UI version is broken, but I actually had a solution using the current version.

Oh I see Jeff reported that the current UI version is broken, but I actually had a solution using the current version... HTML Branding Does your business have a Print Brochures Script $(document). Ready(function(){ $('#accordion'). Accordion({ collapsible: true, animated: 'slide', autoHeight: false, navigation: true }); // open content that matches the hash var hash = window.location.

Hash; var thash = hash. Substring(hash. LastIndexOf('#'), hash.

Length); $('#accordion'). Find('ahref*='+ thash + ''). Closest('h3').

Trigger('click'); }) I used ahref$=... originally, but changed it to ahref*=...... either will work.

Thanks to both you guys for noting the problem with the version and thanks for the solution above. – Andy Dec 7 '09 at 23:06.

The bad news is that the accordion plugin is currently broken (as of 1.7.2, which you can see from ticket #4653). The good news is that it's fixed, and you can already grab the latest version here - but beware, it isn't a stable release yet! If you use the 1.8.1 code, the navigation feature works again.

Setting navigation: true will direct accordion to automatically open the correct panel when you browse to a url that matches your navigation fragment (so that your example would work: services. Html#branding). I think you also want to add the missing identifier to your branding anchor tag, like this: Branding Finally, you may want to use the technique described here to update your page's url to reflect which accordion panel has been clicked without reloading your page.

Thanks for your comment Jeff – Andy Dec 7 '09 at 23:07.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions