title: jQuery UI autocomplete go to url on select
body: <p>I am just wondering how I would go to a url on click from the results returned. My jQuery is as follows:</p>
  
  <pre><code>$('#input').autocomplete({
      source: function(request, response) {
          $.ajax({
              url: 'script.php',
              cache: false,
              dataType: 'json',
              data: {
                  term: request.term
              },
              success: function(data) {
                  response(data);
              }
          });
      }
  });
  </code></pre>
  
  <p>And my script.php is returning:</p>
  
  <pre><code>[
      {
          "label":"Text to display",
          "url":"Url to go to"
      }
  ]
  </code></pre>
  
  <p>I am finding the autocomplete instructions pretty lacking, but but my understanding is I need to do something with 'select'?</p>