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