title: TypeError: abc.getAttribute is not a function
body: <p>For the following code:</p>
  
  <pre><code>  &lt;span class="map-marker" data-lng="101.7113506794"&gt;&lt;/span&gt;
    &lt;span class="map-marker" data-lng="101.6311097146"&gt;&lt;/span&gt;
  
    var abc = $('.map-marker:first');
    var xyz = abc.getAttribute("data-lat");
    console.log(xyz);
  </code></pre>
  
  <p>I get the error message: <code>TypeError: abc.getAttribute is not a function</code>. What have I done wrong?</p>