I have a dependent check-box’s…
CB2 depends on CB1 .
Every thing is working so far ,
WHAT I WANT is when i check the first checkbox CB1, i get the list in CB2.
when i uncheck the CB1 the list remain in the CB2 .
I want to clear the list of CB2 if CB1 is unchecked…
echo CHtml::activeCheckBoxList($model, ‘users’, $data, array(
// 'onchange' => 'javascript:clickedVal(this);',
'separator' => '',
'template' => '<div>{input}&nbsp;{label}</div>',
));
thanks