I have two dependent drop downs Category & Role in my form.Dependent on category dropdown’s selected value role will change.I am doing this with ajax request, like
<?php echo $form->dropDownList($model,'job_category',
$categorylist,
array('empty'=>'Select',
'ajax'=>array('type'=>'POST',
'url'=>CController::createUrl('dynamicstates'),
'update'=>'#role_id','data'=>array('id'=>'js:this.value')))); ?>
It is working fine.But I have a CHtml::resetButton in my form.On resetting two drop downs are expected to reset the values.In my case category dropdown is resetting correctly.But role drop down is not getting the previous value.Ajax request is not triggering while resetting the form.