What I’m trying to do:
Take a nav item – when it’s clicked, add a “<” out to the side of it.
Then when something different is clicked, I’d like to remove the “<” that I just added, so the newly selected item is the only item with the “<” next to it.
Simplified code:
$('.sidebar a').click( function() {
//-->here I need to clear it off of any other items which have it
$(this).after(' <');
});
(Incidentally, I recognize that I could do something with css, but that won’t work in this instance. Needs to be js.)
Here’s the code
Here’s the jsfiddle link http://jsfiddle.net/MHhp4/