Line 7: | Line 7: | ||
var current_element; | var current_element; | ||
$(".top_menu_level_one").click(function(){ | $(".top_menu_level_one").click(function(){ | ||
− | $( | + | |
+ | $(".top_menu_level_one").removeClass("current"); | ||
$(".top_menu_level_two").hide(); | $(".top_menu_level_two").hide(); | ||
+ | |||
+ | $(this).addClass("current"); | ||
+ | |||
current_element = this.id; | current_element = this.id; | ||
$("."+ current_element).show(); | $("."+ current_element).show(); |
Revision as of 21:52, 31 January 2017