echo CHtml::textField('trid','',array('id'=>'trid','size'=>7,'disabled'=>true));
echo CHtml::submitButton('Submit', array('id'=>'submit','name'=>'submit','disabled'=>true));
echo('<b>Dispaly records acoording to status number.</b>');
echo CHtml::radioButton('status',false,array(
"success"=>"function(){
$(#trid).attr('enabled',true)';}
$(#submit).attr('enabled',true)';",
));
3 replies to this topic
#1
Posted 27 July 2012 - 10:07 AM
I want to enable a text field and button when the user selects a radio button, I have tried the following code but not working.
#2
Posted 27 July 2012 - 9:47 PM
I'm not sure where you're getting that "success" term from. Is there some docs somewhere that you're using as the basis of this?
#3
Posted 28 July 2012 - 6:49 AM
I have not found it on the docs anywhere, but it was mentioned in the yii framework forum by some one as an example and I think this tag was for a drop down list. Can you suggest some other html option for radio button to do this task.
#4
Posted 1 August 2012 - 7:26 AM
I can suggest something else in theory, but I'm on vacation right now and don't have the time. If no one has responded in the meantime, I'll reply when I get back from my vacation.
Also tagged with one or more of these keywords: radio button, action
Single Editions →
The Yii Book →
What Is A Filter Chain? What Does "Invoking Its Run() Method" Mean?Started by KeepLearning , 19 Mar 2013 |
|
|
||
Single Editions →
The Yii Book →
Handling Parameters And Throwing Exceptions?Started by KeepLearning , 17 Mar 2013 |
|
|
||
Single Editions →
The Yii Book →
Page Titles In Views: Controller Instance Or Action?Started by KeepLearning , 15 Mar 2013 |
|
|
||
Single Editions →
Modern Javascript: Develop and Design →
Ajax & Posting Radio Button ValueStarted by skim5_1999 , 18 May 2012 |
|
|










