jQuery TypeError: $ is undefined

后端 未结 1 1323
谎友^
谎友^ 2020-12-20 17:34

I\'m trying to use the iCheck plugin and I\'m new to JQuery and javaScript. I\'m getting an error in the browser that says

TypeError: $ is undefined<

相关标签:
1条回答
  • 2020-12-20 18:28

    You are loading <script src="js/icheck.js"></script> before jQuery is defined. Load jQuery first.

    <script type="text/javascript" src="js/jquery-1.11.0.js"></script>
    <script type="text/javascript" src="js/jquery.ui.core.js"></script>
    <script type="text/javascript" src="js/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="js/jquery.ui.accordion.js"></script>
    <script src="js/icheck.js"></script>
    
    0 讨论(0)
提交回复
热议问题