jQuery(…).activeform is not a function in Yii

后端 未结 3 1050
小鲜肉
小鲜肉 2021-01-18 03:27

I am developing a project with Yii.

I need to use jquery ui on many pages of site. So I add jquery core library and jquery ui library in the layout of site to have a

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-18 03:44

    You might have loaded the jquery twice in your page, please check the your code in layout/main.php and where ever you have registered jquery. To load the jquery default code in yii is something like as follows

    Yii::app()->clientScript

    Please check this line, if you are loading jquery here and you might have loaded the jquery in your layout also. Best way to check this is to use html debugger and view page source of the same page where you are getting error.

提交回复
热议问题