Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to set values to custom attributes in Jquery Reply To: How to set values to custom attributes in Jquery

#146119
Chris
Participant

I noticed that your pens are using the classic approach to targeting data attributes so I’ve forked the pen and update it to use the recommend code when working with data attributes.

http://codepen.io/ChrisUpjohn/pen/FbpIu