@CyrusKabir
Posted
Hello my dear friend ♥
actually the big reason it is you put your script tag before all DOM elements; here is some links about this problem : where-should-i-put-script-tags-in-html, script tag palcement, and the problem it's not just your tag placement after your js have whole DOM elements you add this style .active img ....
for that arrow icon but you didn't add .active .answer {display: block}
for showing answers. hope this solve your problem. good luck♥
@samanthewebdev
Posted
@CyrusKabir hey i tried this but it still doesn't work for me.
@CyrusKabir
Posted
@saman2620 Update the github code so I can find the problem
@samanthewebdev
Posted
@CyrusKabir uhh where? i have this project repo on github and my github account is this what i have here u can add me there on github n then u can see it there o guess.
@CyrusKabir
Posted
@saman2620 No, look, I mean, you said you did what I said and it did not work, but I did not see any change in the github code e.g your script tag still is before all DOM elements ,....
@samanthewebdev
Posted
@CyrusKabir no i have this project file on my laptop i change it from there i added scrip in bottom of the body tag just before closing tag; i also added it in the head with defer and asyc attribute but it still didn't worked
@CyrusKabir
Posted
@saman2620 yes, I also said you should add .active .answer {display: block}
style to your css.
@samanthewebdev
Posted
@CyrusKabir hey thank u soooo much i did and it works now thank uuuu!
@CyrusKabir
Posted
@saman2620 your welcome, I am glad it was helpful ♥ good luck my friend