jquery get aria-selected value code example Example: how to get aria expanded value in javascript document.getElementById('test').getAttribute('aria-expanded')