Search the Community
Showing results for tags 'radio button'.
-
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. 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)';", ));
-
Ajax & Posting Radio Button Value
skim5_1999 posted a topic in Modern Javascript: Develop and Design
Hello I'm building a restaurant reservation form which needs to do 3 things - 1) Allow users to input # of people reserving for (Drop down) 2) Then dynamically based on # of people show available rooms (Radio button) 3) Then based on selected room, show date availability via (jquery datepicker) I need all 3 items to access mysql database and appear on same page without refresh. I have 1 & 2 working well but can't figure out how to pass on #2's selected room value onto a php and datepicker id to show dynamically. However, #3, as an independent file actually works well. Hence I