Hello everyone.
Can anybody explain to me how to use clientChange() with dropDownList() ?
Thanks.
Hello everyone.
Can anybody explain to me how to use clientChange() with dropDownList() ?
Thanks.
unless you haven’t found it yet, here is a sample:
echo $form->dropDownList($model, 'form_element', getList(),array
(
'ajax'=>array
(
'url' => CController::createUrl('controller/action'), //only if you want an action here
'type' => 'get',
'data' => array
(
'parameter_name' => 'js:$(this).val()',
),
'update' => '#divID', //or any other jQuery selector
),
));