I have this dropdown list, when I select the item from it the ajax post the item number
to the controller. I don’t want the integer number, I actually want the name of the
selected item. So how can I perform something like that ?
here is my code :
echo $form->dropDownList($model,‘user_country’,$countryList,
array(
'ajax' => array(
'type' => 'POST',
'url' => CController::createUrl('signup/dynamicstates'),
'update' => '#User_user_region'
)
));
I want the post method sends the select country name in the list "USA" instead of 0 or 1 or any digit.