<?php echo CHtml::checkBox('markComplete', FALSE ,
array(
'class' => 'markComplete',
'id'=> 'markComplete'.$events['id'],
'ajax' => array(
'url'=>$this->createUrl('/events/events/MarkComplete'),
'data'=>'event_status_on='.$events['id'],
'type'=>'POST',
'beforeSend' => 'js:function(){
var idSelector = $("#markComplete'.$events['id'].'");
var check = idSelector.is(":checked");
var child = idSelector.parent("td");
var parent = $(child).parent("TR");
$(parent).css("opacity","0.5");
}',
'success'=>'js:function(resp) {
$("#right").prepend(resp);
return true;
}'
),
)
);
?>
Chtml CheckBox click on checkbox but still marked as unchecked not changing.. if i change it to TRUE then it not change into FALSE... Submit it thrugh AJAX... Getting response perfectly.