V-Xtreme
V-Xtreme

Reputation: 7333

how to resolve the conflict between jquery UI and Jquery mobile

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 .

Upvotes: 2

Views: 3256

Answers (1)

SatyamChaudhary
SatyamChaudhary

Reputation: 391

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.

Upvotes: 2

Related Questions