TheEddy Posted July 31, 2010 Share Posted July 31, 2010 I want it to work with: <script> var $J = jQuery.noConflict(); </script> What exactly do I have to change in the jQuery code? Link to comment https://forums.phpfreaks.com/topic/209460-jquery-no-conflict-help/ Share on other sites More sharing options...
radar Posted August 2, 2010 Share Posted August 2, 2010 The only reason to work with that is if you are using something else that utilizes the $ in much the same way such as prototype. in which case you don't need to actually change anything in jquery code. you would do var $J = JQuery.noConflic(); then change these: $('#home') to these: $J('#home') or whatever you've put in place of #home Link to comment https://forums.phpfreaks.com/topic/209460-jquery-no-conflict-help/#findComment-1094191 Share on other sites More sharing options...
TheEddy Posted August 3, 2010 Author Share Posted August 3, 2010 <script type="text/javascript"> var $J = jQuery.noConflict(); jQuery(document).ready(function($){ $J("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true); }); // Use Prototype with $(...), etc. $('div').hide(); </script> Like that? Link to comment https://forums.phpfreaks.com/topic/209460-jquery-no-conflict-help/#findComment-1094755 Share on other sites More sharing options...
radar Posted August 3, 2010 Share Posted August 3, 2010 yeah that should work.. Link to comment https://forums.phpfreaks.com/topic/209460-jquery-no-conflict-help/#findComment-1094795 Share on other sites More sharing options...
TheEddy Posted August 4, 2010 Author Share Posted August 4, 2010 yeah that should work.. It didn't work lol. Link to comment https://forums.phpfreaks.com/topic/209460-jquery-no-conflict-help/#findComment-1094884 Share on other sites More sharing options...
radar Posted August 4, 2010 Share Posted August 4, 2010 let me see if i can find the website i found when i ran into this issue... or better yet let me look at my code. EDIT: here is my code on this... <script type="text/javascript"> var $v =jQuery.noConflict(); $v(document).ready(function(){ //configure the date format to match mysql date $v('#expiry').datepick({dateFormat: 'yyyy-mm-dd'}); $v('#start').datepick({dateFormat: 'yyyy-mm-dd'}); }); </script> Link to comment https://forums.phpfreaks.com/topic/209460-jquery-no-conflict-help/#findComment-1095087 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.