129
rated 0 times
[
133]
[
4]
/ answers: 1 / hits: 20533
/ 12 Years ago, wed, february 13, 2013, 12:00:00
I've got a bunch of div.textBox that I want to apply data attribute to it.
Here's what I want to end up with :
<div class=text data-stellar-ratio=2>
I've tried :
document.getElementByClassName('text').dataset.stellar.ratio = 2;
But it's not working...
Help!
More From » javascript