Expand my Community achievements bar.

SOLVED

How to open an accordion row/section using J-Query

Avatar

Level 1

Hi,

I would like to embed a link on a page (using RTE component). This link would go to another page and upon page load, open a specific accordion section/row. Note that the page with the accordion is using a customized version of the Accordion component.

If I can just JavaScript, would I place the script on the page with the accordion or the page with the link?

Any help or guidance would be appreciated.

Thanks,

Michelle

1 Accepted Solution

Avatar

Correct answer by
Employee

Assuming a scenario where you click a link (1) this would take you faqs.html page.

helpdesk is one fo the sections in that accordion with  name=’helpdesk’ so you can use the selector from the url and expand the accordion identifyin the name attribute in the DOM.

Do I make sense ?

(1) - http://mysite/foo/bar/faqs.html#helpdesk

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Assuming a scenario where you click a link (1) this would take you faqs.html page.

helpdesk is one fo the sections in that accordion with  name=’helpdesk’ so you can use the selector from the url and expand the accordion identifyin the name attribute in the DOM.

Do I make sense ?

(1) - http://mysite/foo/bar/faqs.html#helpdesk