Line 44: | Line 44: | ||
' </div>\n' + | ' </div>\n' + | ||
' <ul>\n' + | ' <ul>\n' + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
' <li id="menu_Other_work">\n' + | ' <li id="menu_Other_work">\n' + | ||
' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Contribution">\n' + | ' <a href="https://2018.igem.org/Team:H14Z1_Hangzhou/Contribution">\n' + |
Revision as of 02:41, 17 October 2018
$(function () {
var menu = $("#menu"); // Dynamically append the menu to the menu id on document readymenu.append(' '
); menu.find("#menu_" + menu.attr("attribute")).addClass("active"); // Adds the active class to the correct element
});