title: how to pass two values in remote function?
body: <p>I want to pass more than one value to the <code>search.php</code> page how can i do that?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Ajax Search Box using PHP and MySQL&lt;/title&gt;
      &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="typeahead.min.js"&gt;&lt;/script&gt;
      &lt;script  &gt;
      $(document).ready(function(){
      $('input.typeahead').typeahead({
          name: 'typeahead',
          remote: 'search.php?key=%QUERY',
          
          prefetch: 'search.php',
          limit : 10
      });
  });
      &lt;/script&gt;
  &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
          &lt;h1&gt;Ajax Search Box using Node and MySQL&lt;/h1&gt;
           &lt;button type="button" &gt;Visit Tutorial&lt;/button&gt;
          &lt;input type="text" name="typeahead" class="typeahead" autocomplete="off" spellcheck="false" placeholder="Type your Query"&gt;
    &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>