I need to get the height of a div and re-think an ifram according to the current height, so far so good.
I'm just picking up the height right after a click that gives a slideToggle in this div. And it seems to me that as yet the slide effect has not finished I can not seem to get the right height.
So how do I call this function only after the slide is complete?
$(document).on("click", "#toggleDiv" function(){
$("#questao").slideToggle(300);
// chamar função para pegar altura somente após o fim do slide. como?
});