Possible Duplicate:
Selecting element by data attribute
I'm trying to listen to when an element with a certain data attribute is clicked but I can't seem to get the on click working and I'm sure its something easy on my part that I'm missing. I have
<a href="/home" data-spinner="true" />
$.data('record').click(function() {
//Do Action
});
I have that with variations. My question is, how can I use an data attribute with on click?