I was wondering how do you create a dropdown list with an option "Create a new type" and when it is selected, it will shows a textbox on the side. Can it be done with CActiveForm?
e.g.
<?php echo $form->dropDownList($model, 'vendor_id', $vendor_list) ?>
How can I attached javascript on it? OR I can't rely on the ActiveForm anymore and need to list down all the HTML code myself?
Thanks a lot.
Cheers,
Mickey

Help















