How do I add another div id to setInterval load?

I have this AJAX script that refreshes/updates a div with the id #main Is it possible to add yet another id #count to also refresh/update along with the other where it says /// can add another function here

I don't know javascript or ajax but I've tried to add function timingLoad() { $('#count').load(' #count', function() and just $('#count').load(' #count', function() but without any luck to get it working.

$(document).ready(function() { /// Wait till page is loaded
setInterval(timingLoad, 3000);
function timingLoad() {
$('#main').load(' #main', function() {
/// can add another function here
});
}
}); //// End of Wait till page is loaded


Read more here: https://stackoverflow.com/questions/67393457/how-do-i-add-another-div-id-to-setinterval-load

Content Attribution

This content was originally published by aquatic7 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: