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
0
After lots of searching i have found solution properly user must load default jquery after load custom js and for that
Should load jquery this way
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->params[‘designFrontEnd’].‘js/jquery-1.11.2.min.js’); ?>
<?php Yii::app()->clientScript->coreScriptPosition=CClientScript::POS_END;?>
<?php Yii::app()->clientScript->registerCoreScript(‘jquery’); ?>
<?php Yii::app()->clientScript->registerCoreScript(‘jquery.ui’); ?>