2

I am using jquery mobile with jquery UI . I have added them like :

 <script type="text/javascript" src="js/jquery-ui.min.js"></script>
 <script type="text/javascript" src="js/jquery.mobile-1.4.2.js"></script> 

as suggested in documentation I have added Jquery UI before Jquery mobile . but I am getting the conflict between this two libraries . I am using Jquery UI only for sorting the list . So before that I have also tried to add jQuery.noConfict() like this //function which using jquery UI

function sort()
{
  jQuery.noConfict();
  // after this I am using jQuery instead of $
}
//function that not using jquery UI
function delete()
{
//here I want to use $ again 
}

but this approach not worked for me . please suggest some solution .

V-Xtreme
  • 7,230
  • 9
  • 39
  • 79

1 Answers1

2

I thing you should resolve conflict like following

<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
    var jQuery_1_9_1 = $.noConflict(true);
</script> <br />

Now use jQuery_1_9_1 as $ for jQuery version 1.9.1.

shashwat
  • 7,851
  • 9
  • 57
  • 90
SatyamChaudhary
  • 381
  • 2
  • 8