Possible duplicate:
Item selection by data attribute
I am trying to listen when an element with a specific data attribute is clicked, but I canβt get it to work, and Iβm sure that for my part, something is easy, that Iβm missing. I have
<a href="/home" data-spinner="true" />
$.data('record').click(function() {
I have it with variations. My question is: how can I use the data attribute with a click?
Devin dixon
source share