Javascript:
var ulKopjes = document.getElementsByClassName("tabKopjes")[0].getElementsByTagName("li");
for (j=1; j < (ulKopjes.length - 1); j++){
debugger;
if (ulKopjes[j].hasClass('activeTab')){
debugger;
}
}
Is there an obvious reason that I get the error 'Uncaught TypeError: undefined is not a function'?
I checked the values in the array, those ar 'li' items, that's correct.