All I am trying to accomplish is to be able to have an unordered list of links in which one is clicked, the parent list item is assigned the class \"active.\" Once another l
Assumption: the UL element has the class 'linksList'.
$('.linksList li a').click(function() { $('.linksList li').removeClass('active'); $(this).parent().addClass('active'); });