Using JQuery and Prototype in the same page

前端 未结 12 1234
忘了有多久
忘了有多久 2020-11-30 03:39

Several of my pages use both JQuery and Protoype. Since I upgraded to version 1.3 of JQuery this appears to be causing problems, because both libraries define a function nam

12条回答
  •  醉酒成梦
    2020-11-30 04:24

    Your jquery-noconflict.js should look like this (be sure that all is in one line):

    document.write("");
    

    ... and than your include (as you already pointed out) should look like this:

          
            
        
    
    

    This solution solves all your requirements I think.

提交回复
热议问题