+ 1

How are the files linked in sl ?

hello evryone , made a quick search but found nothing convincing ... How are the Js and Css files linked in Sl ? Because the document.querySelector method doesn't seem to work properly

10th Aug 2017, 4:14 AM
Lucas Lareginie
Lucas Lareginie - avatar
2 Answers
+ 3
what are you wait from querySelector? hmm...đŸ€” I think it's work properly
10th Aug 2017, 4:24 AM
Вап
0
I changedy strategy i used a document.getElementByClassName. For example i made something like that : var objectParent = document.getElementByClassName (somevariablethatstoretheclass); But the problem is here : When i test the operation with alert(objectParent) , i get " htmlCollection" ( everything fine here ) BUT when i do alert(objectParent.className) i get "null".. Sorry for my approxomative technical english
10th Aug 2017, 4:32 AM
Lucas Lareginie
Lucas Lareginie - avatar