title: Jquery Autocomplete Sample - Unnecessary Code?
body: <p>While surfing Stackoverflow for an autocomplete issue to be solved, I found the perfect solution i was looking for - <a href="http://jsfiddle.net/ULXbb/48/" rel="nofollow">http://jsfiddle.net/ULXbb/48/</a></p>
  
  <p>The only problem is... </p>
  
  <pre><code>$('a.ui-input-clear').click(function() {
      $("input[data-type='search']").val('');
      $("input[data-type='search']").trigger('keyup');
  });
  </code></pre>
  
  <p>I have no idea why this part exists :S  .... clearly &lt; a > tags don't have 'ui-input-clear' with them. That means this jquery code won't work... Am I missing something here?</p>