I have more than one form on one page, and I process one form with renderPartial, now if I want to test it with ajax check, it does not work.
view code
<?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'bill-shipp-form', 'action'=>CController::createUrl('cart/index'), 'enableAjaxValidation'=>true, 'focus'=>array($billingShippingInfo,'first_name_b'),
and in the basket / index I have
if(isset($_POST['ajax']) && $_POST['ajax']==='bill-shipp-form') { echo CActiveForm::validate($billingShippingInfo); Yii::app()->end(); }
Thank you in advance
Irfan source share