hey i was wondering if this is possible. can you give sample codes on how to do it? thank you
hey i was wondering if this is possible. can you give sample codes on how to do it? thank you
You can write a simple jquery script for this.
For example:
'$("#'.CHtml::activeId($model, 'attributeCheckbox').'").change($("#'.CHtml::activeId($model, 'attributeTextbox').'").toggle());'
Take a look to clientscript::registerScript for register this script (or you can just make it float in your html code, not so stylish but effective).
where do i add that code? inside the view function? sorry i’m new here in yii.