I want to create a drop down with id attribute to the option tag. How do I achieve this ? I want the id to be of the same value as the value attribute
Following is my code for creating the drop.
<?php echo CHtml::activeDropDownList($params, ‘location’, CHtml::listData(Location::model()->findAll(), ‘id’, ‘name’)) ;?>
Any help ??