title: Get selected value from selectbox in gsp page Grails
body: <p>I want to get the value of a selectbox in gsp page on onChange event. I tried the following code:</p>
  
  <pre><code>    &lt;g:select id="resource-type" name="resource-type" from="${resultMap?.keySet()}" onchange="${remoteFunction(action:'updateDiffTable'
  , update:'diff-table',params:[currentSelection:this.value,resultMap:resultMap])}"&gt;
  </code></pre>
  
  <p>I want to set the currentSelection parameter to the value of this selectbox. The problem is that I got null in current code. Any idea how to solve it?</p>