i have 2 div’s, left and right, the content in right div is setted dynamically so as its height, so i haven’t specified its height in html, now what i want is the height of the left div should be equal to the right div, how to set the height of the left div as per the height of right div, using jquery, i tried
$("#leftDiv").height($("RightDiv").height());
this does not seems working, as i haven’t specified the height of the right div in html.
is there any other wayout, apart from using tables.
Description
Looks like your selector for
RightDivis not right or you forgot to wait while the DOM is loaded.Sample
Html
jQuery
More Information