list.js
list.js copied to clipboard
toggleClass('active') is not working
I want to use jQuery to style the sort items. However toggleClass('active') is not working. Here's my code:
jQuery(document).on('click', '.table-sort-arrow', function(evt) { var dataSort = jQuery(this).data('data-sort'); jQuery(this).toggleClass('active'); jQuery(this).addClass('active'); )};
If I change 'active' to 'aktive' everything's fine. Did you supress toggling active? Couldn't find anything in the documentation.