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

1st Sep 2019, 4:40 AM
Escobar
Escobar - avatar
2 odpowiedzi
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
1st Sep 2019, 4:51 AM
Calviղ
Calviղ - avatar
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...
2nd Sep 2019, 2:25 AM
Escobar
Escobar - avatar