title: jQuery Autocomplete "no result" not clickable or selectable
body: <p>How to properly handle "no result" case in <a href="http://docs.jquery.com/Plugins/Autocomplete" rel="nofollow noreferrer">jQuery Autocomplete</a> function that the "no result" is not clickable or selectable?</p>
  
  <p>In the "parse" part I add "no result" item:</p>
  
  <pre><code> parse: function(data) {
       var array = new Array();
       if (!data || data.length == 0) {
           array [0] = { data: { Title: "No results" }, value: "No results", result: "No results"};
       }
   }
  </code></pre>
  
  <p>So when are there no results, it shows only "No results". But it is selectable and clickable which is not OK, because this value is then passed to the text input.</p>
  
  <p><strong>EDIT</strong><br>
  Complete javascript part:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
                  var NoResult= "No result";
                  $(function() {
                      $("#txtTextAnimal").autocomplete('&lt;%= Url.Action("Find", "Animal") %&gt;', {
                          dataType: 'json',
                          delay: 100,
                          parse: function(data) {
                              var rows = new Array();
                              for (var i = 0; i &lt; data.length; i++) {
                                  rows[i] = { data: data[i], value: data[i].Title, result: data[i].Title };
                              }
                              if (rows.length == 0) {
                                  rows[0] = { data: { Title: NoResult}, value: "", result: NoResult};
                              }
                              return rows;
                          },
                          formatItem: function(item) {
                              return item.Title;
                          }
                      }).result(function(event, item) {
                          if (item.Title != NoResult) {
                              $("#hidAnimalId").val(item.Id);
                              $("#hidAnimalId").closest("form").submit();
                          }
  
                      });
                  });
  
              &lt;/script&gt;
  </code></pre>