I’m having an issue trying to make a client side validation on yii 1.1.12.
I have the following
<?php
Yii::app()->clientScript
->registerCoreScript('jquery');
?>
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'my-form',
'enableClientValidation' => true,
'clientOptions'=> array('validateOnSubmit'=>true,
'afterValidate'=>'js:function()
{
return false
}'
),
'htmlOptions' => array('enctype' => 'multipart/form-data'),
));
?>
Even using a return false in after validate, my form still being submitted.
Any way to solve this?
Thanks.
Solved.
just removed