Conflict $ between scripts

Asked

Viewed 116 times

1

1 answer

1


These scripts are ready to run in nonconflict mode. You only need to run jQuery.noConflict();.

To make sure that everything goes well you can join in this order:

document.body.innerHTML = [
  'Prototype.Version: ' + Prototype.Version,
  '<br/>',
  'jQuery.version: ' + jQuery.fn.jquery
].join('');
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
    jQuery.noConflict();
</script>
<script src="http://suprb.com/apps/gridalicious/js/jquery.grid-a-licious.js"></script>
<script src="http://suprb.com/apps/gridalicious/js/jquery.fittext.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.3.0/prototype.js"></script>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.