title: ExtJS radio button value retrieval
body: <p>I need to retrieve the value of the radio button checked and send it to the form as parameters. I have written the below block of code but every time it just passes the first value. Could somebody help.</p>
  
  <pre><code>Ext.onReady(function() {
  Ext.getCmp('myButton').setHandler(function(){
  
      Ext.MessageBox.show({
          title:    'Hello', 
          msg:      'Please choose one? &lt;br&gt;&lt;/br&gt; Select: '+
          '&lt;input type="radio" name="newrate" value="Yes" checked /&gt; Yes'+
          '&lt;input type="radio" name="newrate" value="No" /&gt; No',
          buttons:  Ext.MessageBox.OKCANCEL,
          fn: function(btn) {
              if( btn == 'ok') {
                  alert(Ext.get('newrate').getValue());
                      var form = Ext.getCmp("MyForm").getForm();
                      form.getEl().dom.action="${pageContext.request.contextPath}/peer.online.MyForm.grid.action?mode=StornoDX&amp;value="+Ext.get('newrate').getValue();
                      form.getEl().dom.method="POST";
                      form.getEl().dom.submit();
                  }
          }
      });
  });
  });
  </code></pre>