One more take on this, please. I can’t seem to find my error.
I am trying to create an input box that can be shown or hidden by a button press.
I tried with this code below, but the button actually does nothing.
Any idea where am I making the mistake?
<div class="row" id="bhidden" >
<?php echo $form->labelEx($contact,'phone'); ?>
<?php echo $form->textField($contact,'phone',array('size'=>35,'maxlength'=>45)); ?>
<?php echo $form->error($contact,'phone'); ?>
</div>
...
<?php echo CHtml::button('Hide', array('onClick' => 'js:$("#bhidden").toggle();' )); ?>
Thank you.