Hello I would like to position absoulte a div after a filedset in a form but the form has another container element and the fieldst's height is not fixed it is changing by content inside it. I made this with jQuery but is doesn't work. Oh and I can't put the div inside the form because that div contains another form.
<script>
$(function(){
var heightOfform = document.getElementById("form").scrollHeight;
var heightOffsomethingafter = document.getElementById("somethingafter").scrollHeight;
document.getElementById("divtoposition").css('top', (heightOfform-heightOffsomethingafter)+'px');
});
</script>
<style>
#all {position:relative;}
#divtoposition {position:absolute;}
</style>
<div id="all">
<div id="divtoposition"><form></form></div>
<div id="formcontainer">
<form id="form">
<fieldset id="afterthis"></fieldset>
<div id="somethingafter"></div>
</form>
</div>
</div>