I have this this jquery that loads a success message in a modal:
$('#menu_access').load(
site_url + sUrl,
function() {
$(this).dolPopup(oPopupOptions);
}
);
I want to call this function three seconds after the load:
$('#menu_access').dolPopupHide({});
I’m not sure how to go about it. I’m not too familiar with the .load() function.
Use a call to
setTimeout(...)