This is my code:
<?php echo $form->dropDownList($model, 'type', CHtml::listData($ab->type, 'id', 'name'), array('class' => 'edit'), array('width:165px')); ?>
I am trying to add inline css to my dropdown, but my example does not work. Why ?
This is my code:
<?php echo $form->dropDownList($model, 'type', CHtml::listData($ab->type, 'id', 'name'), array('class' => 'edit'), array('width:165px')); ?>
I am trying to add inline css to my dropdown, but my example does not work. Why ?