开发者

Use jQuery UI with prototype

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜