jqueryjquery-3

jQuery.fn.load() is deprecated?


jQuery.fn.load() is deprecated in jquery 3.X.X? I'm making a mess with documentation.

mycode is: $("#myDiv").load('mypage.html');

How I can load mypage.html into #myDiv?


Solution

  • Your code is correct. This load method you use isn't deprecated, but the load event is.