JQuery and Colorbox loaded but “colorbox is not a function”

前端 未结 2 874
谎友^
谎友^ 2021-01-23 00:51

I have checked to see if both jQuery is loaded and the colorbox script is loaded and they both have been loaded correctly (I used .getScript to see if colorbox loaded correctly

2条回答
  •  感动是毒
    2021-01-23 01:47

    You need to reference the colorbox file after the jquery file. Like this:

    
    
    
    

    That is the case for most jquery plugins by the way.

提交回复
热议问题