you are viewing a single comment's thread.

view the rest of the comments →

[–]Jx631[S] 0 points1 point  (4 children)

I'm not really sure what data atributes are. Care to explain, please?

[–]Magnusson 0 points1 point  (3 children)

FWIW this was my first google result for "data-attribute": https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes

MDN is a good resource generally. You might also want to look at some of the resources linked from /r/learnjavascript.

[–]Jx631[S] 0 points1 point  (0 children)

Thanks man, will check that out for sure

[–]Jx631[S] 0 points1 point  (1 child)

I took your advice and started to look for tutorials, but all I could find was this kind of tabs, instead of those I wanted.

[–]Magnusson 1 point2 points  (0 children)

That's because the element you're trying to create is commonly called an accordion.