Load/Prepend HTML from PHP file into div on button click using Jquery -


i want load/prepend html php file div on button click using jquery. how can go doing since .load deprecated? need load html nested within php file , prepend top of div whenever button clicked.

$("selector").load(function() {     // ... }); 

is depreciated. should use

$("selector").on("load", function() {     // ... }); 

Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -