Hi,
http://www.yiiframework.com/wiki/351/working-with-radiobutton-list/ this is the link which am following the validation.But i need the client side validation,unfortunatly here it is not working.pls advise me how can i do the client side validation.
Hi,
Post your code… is it same as in the link? i dont think…
in your controller
// Uncomment the following line if AJAX validation is needed
$this->performAjaxValidation($model);
in you view your form should be
<?php
$form=$this->beginWidget('CActiveForm', array(
'id'=>'files-form',
'enableAjaxValidation'=>true,
'enableClientValidation'=>true,
'focus'=>array($model,'name'),
'method'=>'post',
'htmlOptions' => array('enctype' => 'multipart/form-data'),//this is b/c i use file upload
));
?>
"name" is the first field on my form
I dont know whats going on in that post but that’s it my friend