js set atrybut aria-expanded
document.getElementById('elements-id').setAttribute('aria-expanded', 'true');
rango
document.getElementById('elements-id').setAttribute('aria-expanded', 'true');