I use the following code to show the div when the page starts:
$("#mydiv").hide().show("slow");
This will cause a div to appear with slow animation when the page starts up (loading / updating the page)
However, if at the start of the page (loading / updating the page) I want to insert HTML from another file into this div before starting this animation, I try to do this:
$("#mydiv").load("myPage.html"); $("#mydiv").hide().show("slow");
When I do this, the animation no longer works at startup (page load / refresh). How to load html from another file and still work with animation when the page starts (loading / updating the page)?
source share