I gave some options some values in html and I want to save these values in a js var and I wrote the following line but it didn't work
for (let node of document.getElementsByClassName('op.e.target.value')) {
values.push(node.value);
}
(where op is the class given to all the values)
e.targetis in relation to events, e.g. on click to get the clicked element. Anyway this wouldn't be where you'd use it