title: How to use two id's in an document.getElementById type function.
body: <p>Trying to use two insert text boxes ids to form an address for a google map. I can use one Id but the county doesn't effect.</p>
  
  <pre><code>&lt;div id="map" style="width: 400px; height: 300px;"&gt;&lt;/div&gt; 
  &lt;/br&gt;
  &lt;input type="text" id="search"&gt; Street
  &lt;/br&gt;
  &lt;input type="text" id="search2"&gt; County
  &lt;/br&gt;
  &lt;input type="button" onclick="geocode();" value="Go"&gt;
  
  function geocode () {
      geocoder.geocode({
         'address': document.getElementById('search','search2').value
      }, 
  </code></pre>