jquery.yiiactiveform.js not inlcuded

hi, jquery.yiiactiveform.js not inlcuded in header and ajax validation not working. how to solve this.

i have removed <?php echo $form->error($model,‘user_id’); ?>

You need to leave the error() call for the validation to work… if you don’t want to show the error message than just set the hideErrorMessage to true - http://www.yiiframework.com/doc/api/1.1/CActiveForm#error-detail

<?php

&#036;form = &#036;this-&gt;beginWidget('CActiveForm', array(


    'id' =&gt; 'pupil-form',


    'enableAjaxValidation' =&gt; true,


    'clientOptions' =&gt; array(


        'validateOnSubmit' =&gt; true,


    ),


    'htmlOptions' =&gt; array('hideErrorMessage' =&gt; true)


        ));


?&gt;

Is this correct, its showing the error message. Sorry m a newbie.

I have given you the link to the documentation… this should be in the error() call not in the beginWidget() call

thanks a lot… that worked… :)

HI, can we focus the first error field or move to error summary div on error…