i made a test.html document to test a script. Somehow it is not working and i can\'t get why nothing is happening. The Script is in -tags and wrapped with -tag and the css a
Your code is fine. Just wrap it in DOM ready and you are good to go.
$(document).ready(function(){ $('#menu li a').on('click', function() { $('li a.current').removeClass('current'); $(this).addClass('current'); }); })