title: Passing DropDown selected value along with other selected query result set
body: <p>I have a form &quot;test.cfm&quot;  It passes values to an action page &quot;testAction.cfm&quot;!</p>
  <p>test.cfm does the following:-</p>
  <ol>
  <li><p>A drop down box “fruitsList”.</p>
  </li>
  <li><p>A query “qryFruits” that pulls data and then displays the query-result set</p>
  </li>
  <li><p>“Add” button for every query-result set</p>
  </li>
  </ol>
  <p>How it should work:-</p>
  <ol start="5">
  <li><p>The dropdown “fruitsList” is to be selected.</p>
  </li>
  <li><p>Once the “Add” button in the result list is selected the “query-result set -CurrentRow” value is to be passed.</p>
  </li>
  </ol>
  <p>Add button is passing the “query-resultset -CurrentRow”  value but NOT the &quot;Drop down&quot; Value.</p>
  <p>How to pass the “dropdown- selected-value”?</p>
  <pre><code>    &lt;!--- test.cfm ---&gt;
      &lt;script type=&quot;text/javascript&quot; &gt;
            function assign_fruits()
           //  
           {
             var a = document.fruitsForm.fruitsList.selectedIndex;
             document.getElementById('salesForce').value = document.fruitsForm.fruitsList.options[a].value; 
             }
          &lt;/script&gt;
      
      &lt;form name=&quot;fruitsForm&quot; &gt;
      &lt;table&gt;
        &lt;tr&gt;
         &lt;td&gt;
          &lt;select name=&quot;fruitsList&quot; onChange=&quot;assign_fruits()&quot;&gt;
           &lt;option disabled=&quot;true&quot;&gt;select One
           &lt;option value=&quot;m1&quot;&gt;apple
           &lt;option value=&quot;m2&quot; selected&gt;orange
           &lt;option value=&quot;m3&quot;&gt;banana
           &lt;option value=&quot;m4&quot;&gt;grape
           &lt;option value=&quot;m5&quot;&gt;mango
          &lt;/select&gt; 
         &lt;/td&gt;
  &lt;!--- Trying to assign the DD-value to an input field ---&gt;
   &lt;input  name=&quot;salesForce&quot; value=&quot;&quot;&gt; 
        &lt;/tr&gt; 
       &lt;cfquery name=&quot;qryFruits&quot; datasoure=&quot;#dsn#&quot;&gt;
        Select values from Fruits_Table
       &lt;/cfquery&gt;
       &lt;cfloop startrow=&quot;1&quot; endrow=&quot;#qryFruits.recordcount#&quot; query=&quot;qryFruits&quot;&gt;
        &lt;cfoutput&gt;
        &lt;tr&gt; 
         &lt;td&gt;&lt;a href=&quot;testAction.cfm&quot;&gt;Add&lt;/a&gt;&lt;/td&gt;     
        &lt;/tr&gt;   
        &lt;/cfoutput&gt;
       &lt;/cfloop&gt;
      &lt;/table&gt;
      
      &lt;/form&gt;
  </code></pre>