Hi have a page in my websit called artwork. On this page I have a submenu with the different categories. The photos from this categories will appear on the same page (artwork) coming from the database. For the sake of showing the active category I used the following function:
Code:
$('#submenu a').click(function(e) {
  e.preventDefault();
    $('#submenu a').removeClass('activesub');
    $(this).addClass('activesub');
});
The function is doig what you would expect it to do. The problem is, the href isn't working any longer. What should I change in this function too:
  1. make sure you see the active category
  2. the href attribute is still working



Thank you in advance.