I have a menu that changes dynamically. I want to be able to highlight the clicked item in the menu when someone clicks on it.
$("#my_menu > li").click(function(){
var clickedId = $(this).attr('id');
$("#" + clickedId).css("font-weight", "bold");
$("#" + clickedId).css("background-color", "#E0E0E0");
$('#navigation_submenu').show(); //this is not important
});
However, I also need to revert the other menus back to their initial state once one has been clicked. Can anyone help me with this? Thank you!