I am trying to set the height of one div equal to another. I will call them left and right. The correct div content is not always the same and is loaded using jQuery. This is a filter, so every time you click on a filter, you change the content as well as the parent height of the div.
This is my code:
jQuery(document).ready(function($) { $(window).resize(function() { location.reload(); }); var Height = $("#archive").outerHeight(); $('.recursos-sidebar').css("height", Height); });
The problem is that the left height of the div is equal to the right div when it is empty (the content does not load).
Does anyone know how I can get the height of the right div after changing the content every time?
jquery height
Themes creator
source share