Answers for "aria-expanded javascript"

1

js set attribute aria-expanded

document.getElementById('elements-id').setAttribute('aria-expanded', 'true');
Posted by: Guest on April-27-2021
1

how to get aria expanded value in javascript

document.getElementById('test').getAttribute('aria-expanded')
Posted by: Guest on December-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language