Using jQuery noConflict() with script.aculo.us

前端 未结 4 1694
萌比男神i
萌比男神i 2021-01-16 08:12

I have a site using a \"widget\" (from http://healcode.com) that includes the script.aculo.us JavaScript library. The problem is that the site I\'m building is on WordPress,

4条回答
  •  广开言路
    2021-01-16 08:30

    Assigning jQuery right back to $ doesn't do anything.

    Either assign jQuery to a different variable:

    var j$ = jQuery.noConflict();
    

    Or don't assign it to anything:

    jQuery.noConflict();
    

提交回复
热议问题