say i have a few elements with the following data attribute:
<data-my-key="blah">
and i want to attach an event to them all, how can this be done?
I have tried a few things but cant get it to work.
My latest attempt was:
$('data-my-key').click(...
and
$(document).find('data-my-key').click(...