Last active
June 20, 2018 13:04
-
-
Save ScarletPonytail/80f278b40ad3b85a08c2c529d068d106 to your computer and use it in GitHub Desktop.
jQuery - Aria-expanded
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
$( '.accordion-effect' ).click( function () { | |
$( this ).attr( 'aria-expanded', 'true' ); | |
if ( $( '.accordion-effect' ).attr( 'true' ) ) { | |
$( this ).attr( 'aria-expanded', 'false' ); | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment