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? Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
radar Posted August 3, 2010 Share Posted August 3, 2010 yeah that should work.. Quote Link to comment 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. Quote Link to comment 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.