Pingendo Help Center

Detecting aria-expanded state (Navbar Toggler)


Hi guys,
How can I assign a new class ( using addClass ) when aria-expanded is true and when is false ?
I wanna use different classes detecting aria-expanded state ( true and false ).

This is about Navbar Toggler:

Many thanks.


You should listen for events fired by the Bootstrap collapse plugins
more here