Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Creating A Cjuidialog With Disabled Buttons

$
0
0
So this is an example I copied from YiiPlayground showing how to use a dialog with callback. Would there be an easy way to modify this so that "select" is disabled until a field in the dialog is filled in?

<?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
       'id'=>'findClient',
        'options'=>array(
            'title'=>'Find Client',
            'autoOpen'=>false,
            'modal'=>true,
            'buttons'=>array(
                'Select'=>'js:addItem',
                'Cancel'=>'js:function(){ $(this).dialog("close");}',
            ),
        ),
)); ?>

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>