title: Dynamic params using remoteLink in Grails
body: <p>I want to make an Ajax call using remoteLink (with Prototype as the Javascript library) but I need one of the parameters being passed to be the value from a textfield.  Here's what I have so far in my GSP:</p>
  
  <pre><code>&lt;input id="email" name="email" type="text"/&gt;
  ...
  &lt;g:remoteLink action="addEmail" params="[email:???]"&gt;Add&lt;/g:remoteLink&gt;
  </code></pre>
  
  <p>What do I put in place of ??? to get the remoteLink to send the value of the email textfield as a parameter?  Essentially, how do I reference/access the DOM within a Grails tag?</p>
  
  <p>I tried putting</p>
  
  <pre><code>\$('email').value
  </code></pre>
  
  <p>in place of ??? but I got a "Could not parse script" error in my GSP.</p>
  
  <p>Thanks</p>