Fancybox is not a function

前端 未结 8 715
北海茫月
北海茫月 2020-12-16 10:40

Hello I am using the jQuery plugin fancybox to display bing maps when somebody enters an address into a textbox and hits the submit button beside it. And a fancybox is loade

8条回答
  •  时光取名叫无心
    2020-12-16 11:16

    Possible Solutions:

    1) have you already loaded jQuery? If not, then load it before any $ commands start.

    2) Check, probably you are loading jquery library (.js) several times during the page. Try to load only one.

    3) In the end of file, you can execute this javascript command: $ = jQuery.noConflict(); and it might solve. If not, then anywhere use the word jQuery instead of $, and it will work too.

提交回复
热议问题