Difference between revisions of "ARIA Expanded state"
Jump to navigation
Jump to search
SSB
Line 7: | Line 7: | ||
<head> | <head> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | function toggle() { | + | function toggle(obj) { |
− | if ( | + | if (obj.getAttribute('aria-expanded') == 'true') { |
− | + | obj.setAttribute('aria-expanded','false'); | |
− | + | obj.nextSibling.className = "hidden"; | |
} | } | ||
else { | else { | ||
− | + | obj.setAttribute('aria-expanded','true'); | |
− | + | obj.nextSibling.className = ""; | |
} | } | ||
} | } |
Revision as of 15:01, 11 September 2014
Activate the buttons to expand them and set the aria-expanded state to true. Activate again to collapse.
This is some text.
SSB BART Group is an digital accessibility solutions provider.