Yii Framework Forum: Enable And Disable Image Button - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Enable And Disable Image Button Rate Topic: -----

#1 User is offline   Yii123 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 47
  • Joined: 13-March 13

Posted 28 March 2013 - 04:46 AM

In the yii form have a checkbox for agree conditions. The code like this
<div class="row">                     
<?php echo $form->checkBox($model,'agree',array('id'=>'abc')); ?>
<?php echo $form->labelEx($model, 'agree'); ?>
<?php echo "<br><br>".$form->error($model,'agree'); ?>
</div>
<div class="row buttons" >
<?php  echo CHtml::imageButton(Yii::app()->request->baseUrl.'/images/home/Create.png',      array('submit'),array('id'=>'efg'));?></div>


I want to disabled image button onload and when check the checkbox, i want to enable the image button. How it possible ?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users