Hello,
May be my question sound stupid, but I need some guidance in this case. I usually download the latest jQuery whenever I work on a new project etc. But let say in a year or so, when there is an upgrade etc required, I come to know that there is a new version of jQuery available, however, many things are no longer supported OR if supported they are changed.
For example, .live was replaced by .on, .attr was replaced by .prop etc.
Now, if I take the recent jQuery file and then run my application - it will break as I have used .live OR .attr everywhere, and its not easy to replace these in all the codes - as there are 100s of files.
What would you people suggest in this case and how normally such cases are solved ? 1 way is to keep using the older jQuery file. But what if I have been using it from CDN ? Also, I don’t think that keeping older version is good because new libraries/plugins does not have supports for them.
Today - a client contacted me after 2-3 years, I used jQuery 1.4 for his project etc, and now there are some big changes etc and I have to use some plugins but they support jQuery 1.8+ - Now I am stuck what to do as i have used .live everywhere.
Please guide
Regards
ZH