To get the value of checked radio button in sencha touch, first add a groupValue to the radio button and then get the group value through the getGroupValue() method, like this:
var centre = Ext.ComponentQuery.query('radiofield[name=Centre]');
get the value of checked radio button in Sencha Touch.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
Sumit Kesarwani
25-Jun-2013Ext.Msg.alert('Selected Centre', centre[0].getGroupValue());
If you want to learn more about radio button, then you can read my article:
http://www.mindstick.com/Articles/56bc0549-243a-40f9-83d4-63161fe68e38/?Radio%20Button%20in%20Sencha%20Touch