JQuery Conflict - Ajax Validation Not working

Hi

i am newbie

Uncaught TypeError: Object #<Object> has no method ‘yiiactiveform’

(anonymous function)index.php:445

c.extend.readyjquery.min.js:26

getting this error while trying for ajax validation i have other jquery addons like slider images

ifa.buzinessware.com/index.php?r=enquiry/contactus

this my link on this page ajax validation not working can anyone help me its urgent

and here is mycode shown in crome inspect elements

<script type="text/javascript">

/<![CDATA[/

jQuery(function($) {

$(’#contactus-form’).yiiactiveform({‘validateOnSubmit’:true,‘attributes’:[{‘inputID’:‘ContactUs_CompanyName’,‘errorID’:‘ContactUs_CompanyName_em_’,‘model’:‘ContactUs’,‘name’:‘CompanyName’},{‘inputID’:‘ContactUs_ContactName’,‘errorID’:‘ContactUs_ContactName_em_’,‘model’:‘ContactUs’,‘name’:‘ContactName’},{‘inputID’:‘ContactUs_EmailAddress’,‘errorID’:‘ContactUs_EmailAddress_em_’,‘model’:‘ContactUs’,‘name’:‘EmailAddress’},{‘inputID’:‘ContactUs_ContactNumber’,‘errorID’:‘ContactUs_ContactNumber_em_’,‘model’:‘ContactUs’,‘name’:‘ContactNumber’}]});

</script>

plz share your code,

Ajax validation need this options in your form:


	'enableAjaxValidation'=>true,

	'clientOptions'=>array('validateOnSubmit'=>true),



Did you maybe include your custom jquery.js? If so check the order the js is loaded. Maybe yii’s js is loaded before jquery which would probably break things.

Hello I have already

Load Jquery like this

<?php Yii::app()->clientScript->registerCoreScript(‘jquery’,CClientScript::POS_END); ?>

<?php Yii::app()->clientScript->registerCoreScript(‘jquery.ui’,CClientScript::POS_END); ?>

<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params[‘designFrontEnd’].‘js/jquery-1.11.2.min.js’); ?>

<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params[‘designFrontEnd’].‘js/bootstrap.js’); ?>

but still now geeting error

TypeError: jQuery(…).yiiactiveform is not a function

jQuery(’#editprofile-form’).yiiactiveform({‘validateOnSubmit’:true,‘attributes’:…

When check source of page assets jquery load first and then bootstrap and custom js

Please provide solutions me where i am doing wrong in loading jquery sequence

Thanks