I have an HTML page which I want to load on a click of a class using JavaScript. I am thinking of fetching that HTML using an iframe. This page contains content in the form of an overlay.
I have used .load()
function of jQuery but it does not do anything. The pages I am working are both in same domain so I was hoping that the page would have loaded.
How can I achieve this?
$(".popup-layout").click(function() {
// I want to load an iframe here. Where should that iframe sit on the current page with diplay:none.
});