radio Button and for


<?php echo $form->labelEx($model,''); ?>

<?php echo $form->radioButton($model,'n',array('value'=>1, 'uncheckValue'=>null)); ?>

<?php echo $form->labelEx($model,''); ?>

<?php echo $form->radioButton($model,'n',array('value'=>2, 'uncheckValue'=>null)); ?>

this code give me radioButton with attribute for.


<label for="ss_n">N</label>

<input id="ss_n" type="radio" name="ss[n]" value="1">

<label for="ss_n"></label>

<input id="ss_n" type="radio" name="ss[n]" value="2">

I want get code without attribute for. How can do this?


<label>

 <input type="radio" value="1" checked="" name="n">

</label>

<label>

 <input type="radio" value="2" checked="" name="n">

</label>

hi

use this code :




<?php echo $form->radioButton($model,'n',array('value'=>2, 'uncheckValue'=>null,'name'=>'n')); ?>