开发者

jquery conflict

开发者 https://www.devze.com 2023-02-20 18:17 出处:网络
my existing js is : jQuery JavaScript Library v1.4.2and present my colo开发者_开发百科r picker js is :jQuery JavaScript Library v1.3.2 .So, I am getting conflict , plz try to help me how to solve this

my existing js is : jQuery JavaScript Library v1.4.2 and present my colo开发者_开发百科r picker js is :jQuery JavaScript Library v1.3.2 . So, I am getting conflict , plz try to help me how to solve this problem


have you tried loading 1.4.2 jQuery lib first followed by:

<script type="text/javascript">  

 var $j = jQuery.noConflict();  

</script>

and then loading 1.3.2 jQuery lib?

what this does is lets you use $j. for the first lib and then $. for the older lib which should also allow you to keep your old js code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号