JQuery conflict with an other JQuery library

前端 未结 5 995
南笙
南笙 2021-01-02 05:07

I use jquery for a module. My joomla template have an integrated jquery menu. So they conflict with each other.

Is there a way to solve this problem. Following the s

5条回答
  •  萌比男神i
    2021-01-02 05:30

    try

    var J = jQuery.noConflict();
    

    after that use J variable instead of $ or jQuery for your custom code

提交回复
热议问题