element with a piece of code below
var x = document.querySleector('.class').textContent
is there any problem with that?
you can get a dynamic element using getElementsByClassName
Use queryselectorall?
Typo?
you can do the following: document.getElementsByClassName("class")[index]
Обсуждают сегодня