title: Why am I not able to get the data() value of my autocomplete input field?
body: <p>I'm using jQuery autocomplete on the following input  </p>
  
  <p><code>&lt;input data-searchurl="Some url" /&gt;</code></p>
  
  <p>But when I try to retrieve the data value <code>searchurl</code>, I get <code>undefined</code>.<br>
  Hmm... I get the same if I try using <code>attr</code> as well.</p>
  
  <pre><code>$('input').autocomplete({
      source: function (request) {
          var url = $(this).data('searchurl');
          (...)
  </code></pre>
  
  <p>See my fiddle here: <a href="http://jsfiddle.net/34ewgg7j/3/" rel="nofollow">http://jsfiddle.net/34ewgg7j/3/</a></p>
  
  <p>Why is autocomplete preventing me from doing this?</p>