Discussions » Creation Requests
Detect div onchange
The onchange attribute is only applicable to form field elements (input, select, textarea, etc)
Try to add an onclick event listener or mutation observer on the class tab-list, then maybe you can do something that way.
Hello,
Having some issues detecting when a div has changed, for example this is the div when the page loads
and when I click a button to go to a different tab, the div changes too
So what I want to do is when class="tab-item active" which shows the current active tab then do a function depending on what the tab name is