title: How to get all the data attributes with same class name jquery
body: <p>Consider the following <code>data</code> attributes</p>
  
  <pre><code>&lt;li data-tes='rwer-234;sdf-23;gfd-345' class='sel'&gt;Some text&lt;/li&gt;
  &lt;li data-tes='zxc-23;vcx-12' class='sel'&gt;Some text1&lt;/li&gt;
  </code></pre>
  
  <p>I tried</p>
  
  <pre><code>$('.sel').each(function(){
       console.log( $('.sel').data('tes') );
  })
  </code></pre>
  
  <p>Getting output as <code>undefined.</code></p>