title: Get list options from jQuery UI autocomplete with url
body: <p>My element is a jQuery autocomplete element that gets its options from a URL:</p>
  
  <pre><code>$element.autocomplete({
      source: '/mysearchurl',
      open: function () {
          //...
      },
      response: function (event, ui) {
          //...
      },
      select: function (event, ui) {
          //...
      }
  });
  </code></pre>
  
  <p>It works as expected: The user enters some characters, and it displays the matching values in a drop-down.</p>
  
  <p>What I want now, in my Javascript, is to get the options out of the list, ideally as the same JSON that it gets from the URL. I could try to collect them from the element through something like this:</p>
  
  <pre><code>$($element.data('ui-autocomplete').menu.element[0].list.childNodes).each()
  </code></pre>
  
  <p>But maybe there's a better way?</p>