Dinesh
Dinesh

Reputation: 73

Two different versions of jQuery causing failure in event listening

I am using two versions of jQuery. The code of a meme generator I am using uses jQuery version 1.7.1. The version of jQuery I am using with bootstrap is 2.x The issue is that after I add some code to trigger download after button click it does not work. If I include just my version that is 2.x meme generator stops working. If i include just 1.7.1 the download button event stops listening. How should I solve this issue?

Upvotes: 0

Views: 51

Answers (1)

James Waddington
James Waddington

Reputation: 2905

You can use no conflict mode, see this question for some details. If possible I would try to use versions which use the same jQuery though, as using two versions in the same page adds a lot of bloat and potential bugs.

Upvotes: 2

Related Questions