Line 61: | Line 61: | ||
for (i = 0; i < tablinksA.length; i++) { | for (i = 0; i < tablinksA.length; i++) { | ||
tablinksA[i].className = tablinksA[i].className.replace(" active", ""); | tablinksA[i].className = tablinksA[i].className.replace(" active", ""); | ||
+ | if (tablinksA[i] == tabNane) {$("#" + tablinksA[i]).toggle();} | ||
+ | else {$("#" + tablinksA[i]).hide();} | ||
+ | |||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
evt.currentTarget.className += " active"; | evt.currentTarget.className += " active"; | ||
} | } |
Revision as of 12:46, 30 October 2017