开发者

Use jQuery UI with prototype

开发者 https://www.devze.com 2023-02-05 02:23 出处:网络
I must use jquery, but the site contains prototype elements, and jquery UI tabs not working: How jQuery.noConflict(); works in this code?

I must use jquery, but the site contains prototype elements, and jquery UI tabs not working:

How jQuery.noConflict(); works in this code? $(function() { $( "#tabs" ).tabs(); }开发者_开发知识库);


When using jQuery.noConflict(), you have to use jQuery() instead of $() when using jQuery functions. Assuming that the code you provided is jQuery-based, it has to look the following:

jQuery(function() { jQuery( "#tabs" ).tabs(); }); 
0

精彩评论

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