sutho100
1/4/2019 - 5:18 AM

change text jquery on click

$('#moreFilters').on('click', function() {
    $('#mobileFilters').toggleClass('displayBlock');
    if ($("#moreFilters:contains('More Filters')").length) {
      $('#moreFilters').text('Less Filters');
    } else {
      $('#moreFilters').text('More Filters');
    }
  });