js set atrybut aria-expanded

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