hi,
i have 2 question.
- i am new in YII and working in a form, on that yes and no option in redio button if redio.value =yes then text box enable and user enter comments,
<div class="row">
<?php echo $form->labelEx($model,'prior_PCI'); ?>
<?php echo $form->radioButton($model,'prior_PCI',array('value'=>1,'uncheckValue'=>null)); ?>
<?php echo $form->radioButton($model,'prior_PCI',array('value'=>1,'uncheckValue'=>null)); ?>
<?php echo $form->error($model,'p[b][/b]rior_PCI'); ?>
i need below script in _form.php (view)
// if prior_pci.value=1 then
// <?php echo $form->labelEx($model,'comments'); ?>
// <?php echo $form->textField($model, 'comments', array('maxlength' => 45)); ?>
// endif
</div>
- how a js script file embedded to _form.php (in view)
please help me out.