109
rated 0 times
[
115]
[
6]
/ answers: 1 / hits: 59927
/ 8 Years ago, fri, may 6, 2016, 12:00:00
If I have:
<div class=test data-name=Paul >
and
var name = Paul;
Can I use document.querySelector
to do something like this?
document.querySelector([data-name=name]);
This doesn't work. What do I have to do?
More From » javascript