title: How to Give add new item option in jquery autocomplete?
body: <p>I have autocomplete implemented. I have implementation of <code>bootstrap Modal</code>. All i want to do is to add a new option in autocomplete response i.e <code>Add new Item</code> at the end.</p>
  
  <p>So how to implement this. My code for autocomplete is as:</p>
  
  <pre><code>$(document).ready(function () {
              var makesCache = {}, modelsCache = {}, makesXhr, modelsXhr;
  
              $('#&lt;%= txtName.ClientID%&gt;').autocomplete({
                  source: function (request, response) {
                      var term = request.term;
                      if (term in makesCache) {
                          response(makesCache[term]);
                          return;
                      }
                      if (makesXhr != null) {
                          makesXhr.abort();
                      }
                      makesXhr = $.getJSON('AutoComplete.svc/GetProjects', request, function (data, status, xhr) {
                          makesCache[term] = data.d;
                          if (xhr == makesXhr) {
                              response(data.d);
                              makesXhr = null;
                          }
                      });
                  }
              });
          });
  </code></pre>
  
  <p>The html for the modal which i want to be visible by the option inside autocomplete:</p>
  
  <pre><code>&lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
  </code></pre>
  
  <p><strong>So how to implement this!!</strong></p>