sushil bharwani
sushil bharwani

Reputation: 30187

unable to use jQuery Live

I have my application using jQuery heavily. The problem is that we started with jQuery 1.3.x and now we have a case where we need to use jQuery live(), which is available only in 1.4.x or greater. Replacing jQuery 1.3.x may cause backward compatibility issues. Can somebody suggest how can I use both libraries, or some other way?

Upvotes: 0

Views: 80

Answers (2)

Mike Lewis
Mike Lewis

Reputation: 64147

If you don't want to use the noConflict idea that JohnP suggested, there is a 'livequery' plugin out there that works for jQuery 1.3:

http://docs.jquery.com/Plugins/livequery

Upvotes: 1

JohnP
JohnP

Reputation: 50019

You can use jquery's .noConflict() method to use both : http://api.jquery.com/jQuery.noConflict/

Use .noConflict and assign the new library to another variable and use in your page.

However, I suggest that you do it on a page by page basis, if possible and just remove the old code if it doesn't break anything.

Upvotes: 0

Related Questions