jQuery conflict

1

I'm having a jQuery conflict. I use an Admin, where it has several features ready. I needed to add an autocomplete

When I finished I realized that the menu was no longer open ... rsrs

This is from the menu and all Admin

<script src="assets/js/jquery-ui-1.10.3.custom.min.js"></script>

This is autocomplete

<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

Autocompletecode

$(function(){varavailableTags=[<?phpdo{?>{label:'<?phpecho$row_rsOrigem['rsocial'];?>-<?phpecho$row_rsOrigem['cpf_cnpj'];?>',value:'<?phpecho$row_rsOrigem['cpf_cnpj'];?>'},<?php}while($row_rsOrigem=mysql_fetch_assoc($rsOrigem));?>];$(".origemCPF").autocomplete({
        source: availableTags
    });
});

Is it possible to use both without having problems between them?

    
asked by anonymous 13.05.2015 / 16:02

2 answers

0

Have you tried to take one, test and then take the other and test ?? Because of what I'm seeing, the two are the same version.

Try to do the following: Take one and see that it will stop working, then take the other and see what stopped.

Most likely jquery-ui-1.10.3.custom.min.js must have undergone some changes.

If it is possible, send out the conflict you are creating.

    
13.05.2015 / 16:15
3

Try using jQuery.noConflict() .

var $jQuery = jQuery.noConflict();

$jQuery(document).ready(function() {
  $jQuery("#ad").fadeIn("slow");
  $jQuery("#close").click(function () {
    $jQuery("#ad").fadeOut("slow");
  });
});
    
13.05.2015 / 17:15