+ 2
What I have did wrong?
5 Respuestas
+ 2
山 Zed
What do you mean by on which line?
I said write JS code inside that function so after loading html contents JS code will work.
+ 2
Also document.getElementsByClassName('cat'); returns node list so it should be
var catList = document.getElementsByClassName('cat');
for (var i = 0; i < catList.length; i++) {
var cat = catList[i];
}
+ 2
A͢J thank you so much!!
+ 1
Write JS code inside this function
window.onload = function() {
}
0
On which line A͢J ?