i'm trying to refresh a javascript i created that set height on my div when page load.
<script>
jQuery(function($) {
$('#bloc2').height($('#zonetexteposition').height());
$('#bloc2-vertical').height($('#zonetexteposition').height());
$('#bloc2-horizontal').height($('#zonetexteposition').height());
});
</script>
Until now, everything works fine. my divs are getting the right height from div #zonetexteposition.
The thing is, it calculate the height of the page only onload. My F.A.Q page have questions in it and the anwser appear on click of the question, so it change the height of my div #zonetexteposition. Since the javascript only run onload it doesnt resize to the new height of #zonetexteposition. So i would like to know if its possible to make a script that gonna refresh the above script onclick of a question.
Thanks, hope it's clear