JQuery Returns Height Of 0 For Div Element Immediately After Appending Element
I have a floating div that initially has no content. I use jQuery to append a set of elements to the div, and then immediately call the height method of the original div. The eleme
Solution 1:
This should depend on the size of dom. If its large there will be slight delays.
Solution 2:
If nothing works out then you may temporarily want to consider the deferred .then() function. Here s an example using jsFiddle: http://jsfiddle.net/yTTRq/
Post a Comment for "JQuery Returns Height Of 0 For Div Element Immediately After Appending Element"