Waiting for update of data in div
Waiting for update of data in div
I use in my code div, which content I edit via function html(). But I've got a problem with getting new height of div. Here's example of my code:
$("#idofdiv").html("nějaký obsah");
var h = $("#idofdiv").height();//Here I get bad result
In line 2 I get bad result - old height before changing the content. How can I wait for updating the content, so I could get a height of new content?
Thank you for your answer
Topic Participants
honza.mrazek