Difference between #7 and #8 of
using multiple radio button

Revision #8 has been created by Maurizio Domba Cerin on Mar 9, 2012, 9:37:59 AM with the memo:

fixed typo, styling, and removed link to the webpage
« previous (#7) next (#9) »


Title unchanged

using multiple radio button

Category unchanged


Yii version unchanged

Tags unchanged

radiobutton, radio, button, activeRadioButton, multiple, value

Content changed

wWhen we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. we can usThe radioButtonList can be used for that. B, but if we need to use radioButton itself to place the button any where in a view.
, we need to have include one more parameter in htmloption array().

echo CHtml::radioButton('btn',
 false, array(
)); CHtml::radioButton('btn', false, array(
)); //or we can use it in activeRadioButton()
, too echo $form->radioButton($model, 'name', array(
)); echo $form->radioButton($model, 'name', array(
)); ```
so we can place theany where ion athe page. regards **support@nintriva.com**
6 0
Viewed: 54 888 times
Version: 1.1
Category: Tips
Written by: francis ja
Last updated by: Rohit Suthar
Created on: Mar 7, 2012
Last updated: 3 years ago
Update Article


View all history