Created
February 25, 2015 22:52
-
-
Save nadavspi/c5a09f3f7cdbe86c8acf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var $this = $j(this); | |
| var $next = $this.next(); | |
| $this.on('click', function () { | |
| $this.toggleClass('active') | |
| .attr('aria-expanded', !$this.attr('aria-expanded') === 'true'); | |
| $next().toggleClass('no-display') | |
| .attr('aria-hidden', !$next.attr('aria-hidden') === 'true'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment