0

I am using JQuery 1.6.1 and I want to upgrade it to JQuery 3.0.0 and I did it with jquery-migrate-3.0.0 but got an error TypeError: $(...).live is not a function and why JQuery migrate is working?

This is the JQuery load:

<script src="https://code.jquery.com/jquery-3.0.0.js"></script>
<script src="https://code.jquery.com/jquery-migrate-3.0.0.js"></script>

Inspect element screenshot:

enter image description here

Many thanks

Gulmuhammad Akbari
  • 1,708
  • 1
  • 12
  • 25
  • 1
    jQuery .live() has been removed in version 1.9 onwards .you need to use .on() function – Dinesh undefined May 23 '17 at 06:38
  • please check this https://stackoverflow.com/questions/14354040/jquery-1-9-live-is-not-a-function – Dinesh undefined May 23 '17 at 06:39
  • I know @Dinesh but what is the migrating rule in this case? – Gulmuhammad Akbari May 23 '17 at 06:40
  • @Dinesh Isn't that the purpose of the jquery-migrate library, to provide compatibility with functions that have been removed? – Barmar May 23 '17 at 06:54
  • can you please refer this link https://github.com/jquery/jquery-migrate/#note-if-you-have-not-yet-upgraded-to-112x-or-22x-first-upgrade-to-them-and-use-jquery-migrate-1x-to-resolve-any-compatibility-issues-before-using-jquery-migrate-30-and-upgrading-to-jquery-30 – Dinesh undefined May 23 '17 at 07:01

0 Answers0