Using js to make google custom search with JSON
<p>I'm kind of new in the javascript world and i fond this example to use the google custom search in a website:</p>

<pre><code>&lt;script src="https://www.googleapis.com/customsearch/v1?key=YOUR-KEY&amp;cx=017576662512468239146:omuauf_lfve&amp;q=cars&amp;callback=hndlr"&gt;
&lt;/script&gt;
</code></pre>

<p>This will search for the query car. But if I wish to search another term that is dinamically submited from a form?</p>

<pre><code>&lt;form action="" id="search-form"&gt;
        &lt;input type="text" id="search" name="search" /&gt;
        &lt;input type="submit" id="search-submit" value="search" /&gt;
&lt;/form&gt; 
</code></pre>

<p>How can I do this?</p>

<p>Thanks!</p>
