168
rated 0 times
[
173]
[
5]
/ answers: 1 / hits: 19298
/ 6 Years ago, wed, october 31, 2018, 12:00:00
My HTML tags have a [data-value]
attribute which can be 0, 1, 2 and so on..
If I want to get the elements whose [data-value]
is not equal to 0, how do I write my query selector?
I tried the following but they don't work:
element.querySelectorAll(not[data-value='0']);
element.querySelectorAll([data-value!='0']);
More From » html