Hi,
Problem in Radio Buttons
I have a Radio button List with 2 buttons
when i click the first one i am performing some ajax action
When i try click the second one the first one is not unchecked and i am not able to check the second one
<?php echo CHtml::radioButtonList( ‘ck_Skill’,’’, array(4 => ‘Match my Professional Skill’, 5 => 'Friends
Suggestion’), array(‘separator’ => ’ ', ‘onChange’=>CHtml::ajax(array(‘type’=>‘POST’, ‘dataType’=>‘json’,“url” => array(“search/search”), “success”=>"function(response){
$(’#textfield-wrapper’).html(response.data);
}",
))));?>
please help me!!!!!!
tan1540
(Tan1540)
2
<?php echo CHtml::radioButtonList( ‘ck_Skill’,’’, array(4 => ‘Match my Professional Skill’, 5 => 'Friends
Suggestion’), array(‘separator’ => ’ ', ‘onChange’=>CHtml::ajax(array(‘type’=>‘POST’, ‘dataType’=>‘json’,“url” => array(“search/search”), “success”=>"function(response){
$(’#textfield-wrapper’).html(response.data);
}",),‘return’=>true,<----Insert this in your code
)));?>
wwjholmes
(Wwjholmes)
3
thanks for the solution!
Here is another example,
echo CHtml::radioButtonList(‘job_type’, ‘Y’, $this->getJobTypeOptions(),
array('class'=>'refine',
'ajax' => array('type'=>'POST',
'url'=>CController::createUrl('refine'),
'update'=>'#job_result_list',),
'return'=>true,
));