I have an array in a listData, I want to take the value by the activeDropDownList, not the index, here is my code:
$salaries=array('1000$', '2000$', '3000$', '4000$', '5000$');
echo CHtml::activeDropDownList($model,'salary', $salaries,
array('empty'=>'Select salary',
'style'=>'width:300px', 'class'=>'form-control'));
when the data sent to the controller the value of $model->salary = 1 if the user selected 2000$, I want the value to be 2000$.