title: Change a hidden input fields value when a radio button is selected
body: <p>I want to change the value of an hidden input field each time a user checks a radio button.</p>
  
  <p>This is how my HTML looks like.</p>
  
  <pre><code>&lt;input type="hidden" id="ZAAL_NAME" value="" name="ZAAL_NAME" /&gt;
  
  &lt;input type="radio" name="zaal_ID" value="ROOM1" onclick="change"&gt;
  &lt;input type="radio" name="zaal_ID" value="ROOM2" onclick="change"&gt; 
  &lt;input type="radio" name="zaal_ID" value="ROOM3" onclick="change"&gt;
  </code></pre>
  
  <p>Now I want that each time I check a radio button, the value of that radio button becomes also the value of the hidden input field. Does anybody knows how to do that? Here is what I have so far.</p>
  
  <pre><code>   $('input[name="radbut"]').click(function() {
      console.log(this.value);
      $('ZAAL_NAME').val(this.value);
  });
  </code></pre>
  
  <p>Could anybody help ?</p>
  
  <p>Kind regards,</p>
  
  <p>Steaphann</p>