Why not try something like this?
$('#menu li a').on('click', function(){
$('#menu li a.current').removeClass('current');
$(this).addClass('current');
});
More Related Contents:
- How make my CSS responsive using Bootstrap 3.1
- Can't able to apply css file in html5
- How to change the element of another div by clicking and hovering on an element of a different div
- Hide/Show div on specific page with jquery
- How to change the bootstrap css width into 1000px? [closed]
- Alert jQuery + CSS [closed]
- CSS block doesn’t show click on a button
- how to force list items to go to differents rows?
- jquery change section with scrolling and animation
- Auto-size dynamic text to fill fixed size container
- Click button copy to clipboard
- Slide right to left?
- Show div on scrollDown after 800px
- What is the easiest way to disable/enable buttons and links (jQuery + Bootstrap)
- How to remove close button on the jQuery UI dialog?
- jQuery on window resize
- jquery IE Fadein and Fadeout Opacity
- Activate CSS3 animation when the content scrolls into view
- Selecting only first-level elements in jquery
- How to fade loop background images?
- Why is z-index ignored with position:static?
- How to make Bootstrap carousel slider use mobile left/right swipe
- Get the value of -webkit-transform of an element with jquery
- How do you create a toggle button?
- Bootstrap CSS Active Navigation
- JQM (jQueryMobile) Dynamically added elements not displaying correctly and CSS is not applied
- Trying to make multiple background images cycle through a slideshow with CSS and JQUERY
- position fixed header in html
- JQuery search in static HTML page with highlighting of found word
- Possible to have a floating horizontal scrollbar?