$(…).tabs is not a function

后端 未结 8 1672
隐瞒了意图╮
隐瞒了意图╮ 2021-01-07 22:42

I have this code on two pages on my site, but at one page the function doesn\'t work. Firebug shows me \" $(...).tabs is not a function \". I don\'t understand why, can anyo

8条回答
  •  攒了一身酷
    2021-01-07 23:02

    I had the same problem, I realized that I had jquery and bootstrap css imports that enter in conflict each other. Take a look to the ones you have imported and reduce those imports to the minimum to see which is the conflict.

    Here there is an example of how to implement it, I took that example and worked, then I adapted to my application:

    for jquery 1.9 (click on view source to see the code) http://jqueryui.com/tabs/

    for jquery 1.8 (check the example at the end of the page) http://api.jqueryui.com/1.8/tabs/

    Hope it helps!

提交回复
热议问题