Answer the question
In order to leave comments, you need to log in
How to get the values of all data attributes?
Can't get all values from data-name. Only the first value works. Maybe someone will tell?
<div class="letters">
<button class = "let" data-name='q'>q</button>
<button class = "let" data-name='w'>w</button>
<button class = "let" data-name='e'>e</button>
<button class = "let" data-name='r'>r</button>
<button class = "let" data-name='t'>t</button>
<button class = "let" data-name='y'>y</button>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question