Toggle Aria Expanded True/False

$( ".show-menu" ).click(function() { $( '.header-contact, #menu-top-menu' ).toggleClass( "show-menu-block" ); $(this).attr('aria-expanded', function (i, attr) { return attr == 'true' ? 'false' : 'true' }); });
Toggles the aria-expanded attribute.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.