Tuesday, December 8, 2015

Yii validation OnSubmit OnChange

        'enableAjaxValidation'=>true,
 'clientOptions' => array(
         'validateOnSubmit' => true,
          'validateOnChange' => false,
          'validateOnType' => false,
      //  'errorCssClass' => 'has-error',
      //  'successCssClass' => 'has-success',
      //  'afterValidate' => 'js:function(form, data, hasError){}'
        ),
'htmlOptions' => array('enctype' => 'multipart/form-data'),

No comments:

Post a Comment