Difference between revisions of "ARIA Expanded state"

From Level Access Web Labs
Jump to navigation Jump to search
Line 10: Line 10:
  
 
         if (obj.getAttribute('aria-expanded') == 'true') {
 
         if (obj.getAttribute('aria-expanded') == 'true') {
          alert(obj.nextSibling.nextSibling.tagName);
 
 
           obj.setAttribute('aria-expanded','false');
 
           obj.setAttribute('aria-expanded','false');
 
           obj.nextSibling.nextSibling.className = "hidden";
 
           obj.nextSibling.nextSibling.className = "hidden";

Revision as of 15:25, 11 September 2014

Activate the buttons to expand them and set the aria-expanded state to true. Activate again to collapse.