title: Get array from jquery autocomplete
body: <p>I am using JQuery to autocomplete names from a remote database... this all works fine.</p>
  
  <p>However, I want to also get ALL the information associated with that name from the autocomplete and save it to a php array...</p>
  
  <p>Can anyone help?</p>
  
  <p>This is my code for the autocomplete</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(function() {
  $("#findname").autocomplete({
      source: "templates/search2.php?field=sire",
        minLength: 5 
    });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>And here is how I call it...</p>
  
  <pre><code>&lt;input type="text" name="name"  id = "findname" size="45"&gt;&lt;br&gt;
  </code></pre>
  
  <p>So, when I find the name I am looking for, which works fine, how can I return ALL the data for that named record and store to an array, to then call a modal with the data ?</p>
  
  <p>Thanks</p>