title: why data-attribute shows undefined while getting data value from HTML element using JQUERY
body: <p><a href="http://jsfiddle.net/Yovivek/k08w167j/1/" rel="nofollow"><strong>FIDDLE</strong></a></p>
  
  <p>I am trying to get the data attributes value of an HTML element it shows undefined <code>object[]</code> nothing goes work for me. Check my fiddle.</p>
  
  <pre><code>$(document).on("click", ".modal-open", function() {
      var $_target = $($(this).data("targetlocation"));
      var $_url = $($(this).data("targeturl"));
      console.log($_target);
      console.log($_url);
  })
  </code></pre>