title: Struts setting radio button value from javascript
body: <p>I have a Struts radio button which I am trying to set from JavaScript, with no success. </p>
  
  <p>Below is my code and options I have tried.</p>
  
  <p><strong>Radio Button</strong></p>
  
  <pre><code>&lt;s:radio name = "myrdb" 
             id = "myrdb" 
           list = "#{'true':'Yes','false':'No'}" 
        onclick = "rdbFunction(this.value)" /&gt;
  </code></pre>
  
  <p><strong>Option tried:</strong></p>
  
  <ul>
  <li><code>document.getElementById('myrdb').value = 'true';</code></li>
  <li><code>document.getElementById('myrdb').attr('value', 'true');</code></li>
  <li><code>document.getElementById('myrdb').set('value', 'true');</code></li>
  </ul>