Menu icon Foundation
Focus on accordion element

Hello,

Is there way to focus on element in an accordion.

 

For example, I have three accordions

ACCORDION1

ACCORDION2

ACCORDION3

 

In Accordion 2, I have several elements including this  element <input type="text" id="color">

I have a link when clicked should open Accordion2 and set focus to the input element with id="color". I can handle the open part with toggle but how do can we set focus on that particular element after it is opened

 

Can someone guide how this can be done..

 

 

accordion

Hello,

Is there way to focus on element in an accordion.

 

For example, I have three accordions

ACCORDION1

ACCORDION2

ACCORDION3

 

In Accordion 2, I have several elements including this  element <input type="text" id="color">

I have a link when clicked should open Accordion2 and set focus to the input element with id="color". I can handle the open part with toggle but how do can we set focus on that particular element after it is opened

 

Can someone guide how this can be done..

 

 

ADMIRANDA 11 days ago

I did read somewhere else as well that the focus on the accordion element was important. I think I read it on rushessay. Anyways, it has been wonderful getting to read through it again, thanks!