Answer the question
In order to leave comments, you need to log in
Yii CActiveForm: Why doesn't clientValidation work with CHtml::ajaxSubmitButton?
This is how I create the form:
$checkOrderForm = $this->beginWidget('CActiveForm', array(
'id' => 'check-order-form',
'stateful' => true,
'enableClientValidation' => true,
'clientOptions' => array(
'hideErrorMessage' => TRUE,
'validateOnSubmit' => TRUE,
'validateOnChange' => FALSE,
'validateOnType' => TRUE,
'errorCssClass' => 'has-error',
),
));
CHtml::submitButton('Проверить'), array(
'class' => 'btn btn-red text-bold',
));
CHtml::ajaxSubmitButton( 'Проверить', '', array('update' => '#checkOrderResult') );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question