how to use jquery.noConflict property

后端 未结 4 821
轻奢々
轻奢々 2020-12-09 00:39

I am testing my webpage on a server using preview dns. Just realized that preview dns automatically adds mootools library towards the end of any php page. Probably for thei

4条回答
  •  没有蜡笔的小新
    2020-12-09 01:12

    After you include jQuery, add the following in a script tag immediately after it.

    
    

    Also place your jQuery script before your mootools library. Order will be:

    jQuery script include

    noConflict code

    mootools script include

提交回复
热议问题