Jump to content

jQuery No conflict help


TheEddy

Recommended Posts

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

<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?

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.