Difference between revisions of "ARIA Expanded state"

From Level Access Web Labs
Jump to navigation Jump to search
Line 2: Line 2:
 
   <style type="text/css">
 
   <style type="text/css">
 
     .hidden {
 
     .hidden {
       //display:none;
+
       display:none;
 
     }
 
     }
 
   </style>
 
   </style>
Line 14: Line 14:
 
         }
 
         }
 
         else {
 
         else {
       alert(obj.nextSibling.tagName);
+
       alert(obj.nextSibling.nextSibling.tagName);
 
           obj.setAttribute('aria-expanded','true');
 
           obj.setAttribute('aria-expanded','true');
 
           obj.nextSibling.className = "";         
 
           obj.nextSibling.className = "";         

Revision as of 15:23, 11 September 2014

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