I have 2 divs. 1st div should automatically change own height if 2nd div height was changed.
var height = jQuery('#leftcol').height();
height += 20;
jQuery('.rightcol-botbg').height(height);
There is no ability to change HTML markup :( I have many DHTML layout changes, so I can't run prev. code anytime. I want to run it dynamically. I need to do something like event/trigger.
I tried to use jQuery('#leftcol').resize(function(){})
or jQuery('#leftcol').change(function(){})
. but it doesn't work. (resize
triggers when window size changes.)