dimanche 29 septembre 2019

Using Class in Javascript instead of ID

I just copied some code in javascript, but it doesn't actually working because what I had is "class" not "id". document.getElementById("classname"). how do you do it in JS using "class" it is not recognized that's why my JS failed, there is another way of using class in JS ?




Aucun commentaire:

Enregistrer un commentaire