Posted
in
document.querySelectorAll('.accordion').forEach(group => {
group.querySelectorAll('details').forEach(d => {
d.addEventListener('toggle', function(){
if (this.open) {
group.querySelectorAll('details').forEach(o => {
if (o !== this) o.removeAttribute('open');
});
}
});
});
});
error: Content is protected !!