title: Posting values selected in drop-downs to controller
body: <p>I have a GSP with a dropdown as follows:</p>
  
  <pre><code>&lt;select  onchange="display()" id="mv" class="wrapper-dropdown"&gt;
     &lt;option value ="AFFILIATES"&gt;AFFILIATES&lt;/option&gt;
     &lt;option value ="CSE"&gt;CSE&lt;/option&gt;
     &lt;option value ="DISPLAYADS"&gt;DISPLAYADS&lt;/option&gt;
     &lt;option value ="EMAIL"&gt;EMAIL&lt;/option&gt;
     &lt;option value ="MOBILEWEB"&gt;MOBILEWEB&lt;/option&gt;
     &lt;option value ="ORGANIC"&gt;ORGANIC&lt;/option&gt;
     &lt;option value ="OTHERS"&gt;OTHERS&lt;/option&gt;
     &lt;option value ="SEM"&gt;SEM&lt;/option&gt;
     &lt;option value ="SEO"&gt;SEO&lt;/option&gt;
  &lt;/select&gt;    
  </code></pre>
  
  <p>I want to pass the following value to controller :</p>
  
  <pre><code>var m2 = document.getElementById('mv');
  </code></pre>
  
  <p>Following is a snippet from my controller:</p>
  
  <pre><code>def rows = sql.rows("select * from table xyz where mv = 'SELECTED'")
  </code></pre>
  
  <p>What should 'SELECTED' be replaced with and how can we pass m2 from GSP to controller such that it replaces 'SELECTED' with 'm2' passed from GSP?
  Do we need remoteFunction here? How do we use it? I tried a few things but I am not getting the expected result.</p>