Any way to add attributes or data to elements? .setAttribute didn't seem to do the trick. Any ideas?
what is days?
It's an array of elements that I'm looping through. I want to set different attributes for each
i think you should try to access the DOM element through layer.__element — and then I am not sure if setAttribute is a pure browser thing or you might need jQuery
Johannes, yeah setAttribute still doesn't work. I'll look into JQuery I suppose
what kind of elements are in that array? are they framer layers?
why can't you just do days[i].data = /.. ?
Cemre, that's what I needed. Thanks man
oh THAT's what you wanted to do... I really thought you needed this to show up in the DOM. you can just add any variable or object to a layer
Awesome, thanks guys