title: Update function for typeahead
body: <p>I want to get data from server and suggest with typeahead.
  I get my data from list to an usl like <code>/foo/q=QUERY</code> and this query return json like <code>["salam","bye", "khodafez,]</code>.
  How i can use from bootstrap typeahead to suggestion.
  I try this code:</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
              $(document).ready(function() {
                  $("#vahid").typeahead({
                       // ???    
                  });
              });
            &lt;/script&gt;
  </code></pre>