2

using code from this site i have added accordion to SharePoint page. Now i'm try to open certain part of accordion by link from external page.

I guess it should be done with hash but unfortunately it doesn't work for me Do you have any suggestions what should I do?

var hash = window.location.hash; 
$(hash).find('.h2').trigger('click');

Fiddle with code

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.