hello i have a code:
echo $form->dropDownList($model,'id_advertiser',CHtml::listData(Advertiser::model()->findAll('deleted IS NULL or deleted <> :deleted',array(':deleted'=>1)), 'id', 'name'),
array('onchange'=>'{tes();}')
);
in my code, I want to set an empty value
I tried like this
echo $form->dropDownList($model,'id_advertiser',CHtml::listData(Advertiser::model()->findAll('deleted IS NULL or deleted <> :deleted',array(':deleted'=>1)), 'id', 'name'),
array('empty'=>'Please Choose One'),
array('onchange'=>'{tes();}')//->not run..
);
but the functions of [the test] does not run
is there a solution?