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!!!!!!
Page 1 of 1
issue in RadioButtonList
#2
Posted 12 November 2012 - 04:46 AM
giriRivik, on 21 February 2012 - 02:28 AM, said:
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!!!!!!
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!!!!!!
<?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
)));?>
#3
Posted 17 May 2013 - 06:48 PM
TTANN, on 12 November 2012 - 04:46 AM, said:
<?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
)));?>
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
)));?>
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,
));
Share this topic:
Page 1 of 1

Help











