I am still new to the yii framework, and I manage to get my dropdownlist working, but I can't figure out from research or documentation. How to make my dropdownlist selected value effect what is going to be display to the screen in a text area.
<div class="row">
<?php
echo CHtml::dropDownList("teamName", 'id', Chtml::listData($model->memberOfTeams, 'id', 'teamName'),array(
'empty'=>'Select Team',
'ajax'=>array(
'type'=>'POST', // request type
'url'=>CController::createUrl(''), // url to call
'update'=>'#teamMessage' // selector to update
)
)
);
?>
</div>