I want to load data depending on checkbox and tried this way.
echo CHtml::activeCheckBox($model,'State',
array('ajax'=>array('url'=>$this->createUrl('ad/AllState'),'type'=>'POST')));
When I checked the checkbox, there are two issues
- Checkbox always marked as unchecked.
- Wrong value in $_POST.