Accordion open/close functionality

Permalink Browser Info Environment
Hi, lets say that you have the accordion open, then you click on the next one and the top one closes then the one you clicked on opens... problem is that if you have a small screen the accordion moves up away from view.

Is there a way you can get the page to move to the top of the accordion that is clicked on?

Hope I explained myself clearly.

Type: Discussion
Status: New
agentorange
View Replies:
agentorange replied on at Permalink Reply
agentorange
So I managed to figure this out. I added a focus function on the accordion title as per below. Not sure if there is a better way to do this but it worked for me.

<body onload="document.getElementById('ccm-easyAccordion-title-active').focus()">

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.