title: (jQuery-Autocomplete) Show all the results after clearing search box
body: <p>im fairly new to the jquery and im building an MVC 4 website, this works as expected however I want to handle the event where the user clears the search criteria and then I update my table to its original state </p>
  
  <pre><code>    var submitAutoCompleteForm = function (event, ui) {
      var $input = $(this);
      $input.val(ui.item.label);
      var $form = $input.parents("form:first");
      $form.submit();
  };
  var createAutoComplete = function () {
      var $input = $(this);
      var options = {
          source: $input.attr("data-otf-autocomplete"),
          select: submitAutoCompleteForm
      };
      $input.autocomplete(options);
  };
  $("input[data-otf-autocomplete]").each(createAutoComplete);
  </code></pre>