133
rated 0 times
[
134]
[
1]
/ answers: 1 / hits: 30908
/ 9 Years ago, mon, october 12, 2015, 12:00:00
I am writing something in JavaScript that I need to use querySelectorAll.style
but it always returns undefined, but it works perfectly with querySelector.style
. How can I make it work properly so I can set the style?
document.querySelector(div#tabs + tabId + > div.page).style.display = 'none'; //works
document.querySelectorAll(div#tabs + tabId + > div.page).style.display = 'none';// doesn't work
More From » html