Difference between revisions of "Template:Wageningen UR/CpxKineticsCSS"

Line 62: Line 62:
 
         tablinksA[i].className = tablinksA[i].className.replace(" active", "");         
 
         tablinksA[i].className = tablinksA[i].className.replace(" active", "");         
 
         classname = document.getElementsByClassName(tablinksA[i]);
 
         classname = document.getElementsByClassName(tablinksA[i]);
 +
        if(classname == tabName) {
 +
$("#" + tabName).toggle();}
 +
        else {$("#" + classname).hide(); }
 +
 
         alert(classname);
 
         alert(classname);
 
     }
 
     }

Revision as of 13:11, 30 October 2017