title: quick javascript question about a dropdown with onchange action
body: <p>Using smarty, take a look at the code below:</p>
  
  <pre><code>            &lt;select name="unitSelect" class="uniForm" id="unitSelect" style="width:1250px;" onchange="location.href='{$ABS_MANAGER_URL}/managerEditUnit.php?unit_id={$set[i].id}'; return false"&gt;
                      &lt;option value="0" selected="selected"&gt;Select Unit&lt;/option&gt;
                  {section name=i loop=$set}
                      &lt;option value="{$set[i].id}" &gt;{$set[i].unitName}&lt;/option&gt;
                  {/section}
              &lt;/select&gt;
  </code></pre>
  
  <p>What I want, is for the value in the options to load into the select onchange"" call, for the GET variable...  I can't figure out how to do this with javascript...any ideas anyone?</p>
  
  <p>Thanks.</p>
  
  <hr>
  
  <p><strong>UPDATE</strong></p>
  
  <p>It wasn't easy, but between a few of your comments I got one working, thanks all:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function viewUnit(value) {
  
          var url = "managerEditUnit.php?unit_id="; 
          url += value;
          document.location.href=url;
      }
  &lt;/script&gt; 
  </code></pre>