getting the height and width of a div after loading info into it from an external source with jquery
问题 I've seen questions similar to this but haven't found an answer for my situation. I've created a simple modal popup plugin using jQuery that runs like this: $('#popup').popupElement("http://www.example.com #somediv"); It loads divs from another website when the selector #popup is clicked. The click function looks like this: $(thisObj).click(function(e){ e.preventDefault(); $("#popupDiv").load(div); centerPopup(); loadPopup(); }); The problem is when it loads the external div into the popupDiv