title: Retrieve data attribute values for jQuery collection's elements
body: <p>This works for the first match:</p>
  
  <pre><code> var attributeValue = $({selector}).data("myAttribute");
  </code></pre>
  
  <p>But if I want to get values for all elements selector matches, I do the following:</p>
  
  <pre><code>var attributes = [];
  $.each($({selector})), function(k,v) { attributes.push($(v).data("myAttribute")); });
  </code></pre>
  
  <p>This feels stupid. Is there simpler way to get the data for all the elements?</p>