title: attr value sowing undefined in console
body: <p>I am trying to get the data-icons value but it shows undefined in console.</p>
  
  <h2>My codes are</h2>
  
  <pre><code>&lt;ul class="list-icons" data-icons="star"&gt;
  </code></pre>
  
  <p></p>
  
  <p>Js files</p>
  
  <pre><code>var icon = $('ul.list-icons li').attr('data-icons');
  console.log(icon);
  </code></pre>
  
  <p>It shows undefined</p>