Reputation: 2383
In my project I am maintaining different jquery versions . so, I am getting jquery conflict please help me how to solve this problem.
Upvotes: 2
Views: 2951
Reputation: 3311
try this
<script type="text/javascript">var jQuery_1_10_2 = $.noConflict(true);</script>
<script>jQuery_1_10_2(document).ready(function(){
jQuery_1_10_2("#click_id").click(function(){
jQuery_1_10_2("#your_id").toggle();
});});
</script>
Upvotes: 0
Reputation: 36619
A simple Google search for jQuery conflict
would have directed you to the API site:
http://api.jquery.com/jQuery.noConflict/
<script src='jquery-1.3.2.js'></script>
<script>
var jq132 = jQuery.noConflict();
</script>
<script src='jquery-1.4.2.js'></script>
<script>
var jq142 = jQuery.noConflict();
</script>
Upvotes: 8