jQuery.fn.load() is deprecated?

user2940867 picture user2940867 · Jul 1, 2016 · Viewed 15.4k times · Source

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?

Answer

Philip Bijker picture Philip Bijker · Jul 1, 2016

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