0
event wont trigger on click but i cant find out why....
event wont work...its supposed to change the class value to another css style on the users click but the event wont trigger https://code.sololearn.com/W1QozClFA4Q6/?ref=app
2 Antworten
0
var f,g;
onload = function () {
f= document.getElementsByTagName("div");. // for sololearn pg, element need to initiate from onload callback
g="ana2anim";
}
function anim(){
f[0].className = g; // f is an array, f[0] points to first assigned tag element
}
https://code.sololearn.com/WpjBIWjQgtE9/?ref=app
0
mmaaaaannnnnn like that className method is like nowhere in my nites, id have never figured that out...thx a bunch though, your good with this bro, cant wait to reach your level...