Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter markmelch

    (@markmelch)

    Got it, give each accordion a unique div ID.

    $('#accordion').accordion({collapsible: true, active: false});
    $('#accordion2').accordion({collapsible: true, active: false});
    
    <div id="accordion">
    <div id="accordion2">
    Plugin Author David Gwyer

    (@dgwyer)

    You can also use CSS classes too. These are designed to have multiple instances on the same page.

    Useful for multiple jQuery UI instances.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible to have multiple accordions on one page?’ is closed to new replies.