js set attribute aria-expeded

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