Register Accordion by Class and Not ID

Register Accordion by Class and Not ID

Hi, I am trying to get multiple accordions on one page but currently I am registering the accordion by ID. How do I change it to register by Class and NOT ID?

Thanks in advance