Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Submenu items arrow in mobile Reply To: Submenu items arrow in mobile

#265699
Shikkediel
Participant

This oughta work:

jQuery('.mobile-sidebar .nav-top-link').click(function(e) {

  e.preventDefault();

  var item = jQuery(this);

  item
  .parent().toggleClass('active')
  .attr('aria-expanded', 'false' === item.attr('aria-expanded') ? 'true' : 'false');
});

Edit – needed a bit more specificity.