Get data attribute value ... data is returning null
<p>I have the following tag:</p>

<pre><code>&lt;a href="#" class="Test" data-url="/api/users/unlock"&gt;Test&lt;/a&gt;
</code></pre>

<p>And the following JQuery:</p>

<pre><code>$('a.Test').click(function (e) {
  alert(e.data); &gt;&gt; This returns null
  jQuery.support.cors = true;
  $.ajax({
    url: e.data('url'),
    type: 'GET',
    dataType: 'json',
    success: function (data) {
      alert(data)
    },
    error: function () {
      alert("Failure!");
    }
  });
</code></pre>

<p>});  </p>

<p>Basically, I am trying to use in the Ajax call the url of data-url.</p>

<p>This is not working and when I try alert(e.data) I get null.</p>

<p>What am I doing wrong?</p>

<p>Thank You,
Miguel</p>
