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

Changes

Title unchanged

using multiple radio button

Category unchanged

Tips

Yii version unchanged

Tags unchanged

radiobutton, radio, button, activeRadioButton, multiple, value

Content changed

[...]
```php
echo CHtml::radioButton('btn', false, array(
'value'=>'1',
'name'=>'btnname',
'uncheckValue'=>null
));
 
 
echo 
CHtml::radioButton('btn', false, array(
'value'=>'2',
'name'=>'btnname',
[...]
));


 
//we can use it in activeRadioButton(), too echo $form->radioButton($model, 'name', array( 'value'=>1, 'uncheckValue'=>null ));
 
echo $form->radioButton($model, 'name', array(
'value'=>2,
'uncheckValue'=>null
[...]
regards

ni
ntriva
6 0
13 followers
Viewed: 74 568 times
Version: 1.1
Category: Tips
Written by: francis ja
Last updated by: Rohit Suthar
Created on: Mar 7, 2012
Last updated: 10 years ago
Update Article

Revisions

View all history