title: Jquery Autocomplete close function
body: <p>I have a Jquery Autocomplete menu with an image at the bottom of it - added with the code below.</p>
  
  <p>Is there a way to have Jquery Autocomplete menu close (disappear) after I click on the picture? </p>
  
  <p>Thank you for your help. </p>
  
  <pre><code>&lt;script&gt;
  $(function() {
         var availableTags = [
          "new york, ny",
          "new york city, ny",
          "manhattan, ny",
          "queens, ny",
          "brooklyn, ny",
          "bronx, ny",
          "staten island, ny",
          "kings county, ny",
          "richmond county, ny",
          "big apple, ny" 
      ];
      $( "#tags" ).autocomplete({ 
          source: availableTags,
          open: function (event, ui) { 
                       var nyc="&lt;img src=\"images/iloveny.jpg\" onclick=\"DoGood()\"/&gt;";
                       $(this).autocomplete("widget").append(nyc); 
              },
      });
  }); 
  &lt;/script&gt; 
  </code></pre>