I have two DIVs, .sidebar and .content and I want to set .sidebar to keep the same height with the .content.
I\'ve tried the f
Works like a charm:
function sidebarHandler() {
jQuery(".sidebar").css({'height':(jQuery(".content").height()+'px')});
jQuery(".sidebar").height(jQuery(".content").height());
var highestCol = Math.max(jQuery('.sidebar').height(),jQuery('.content').height());
jQuery('.sidebar').height(highestCol);
}
initialize it with all your other jQuery stuff:
jQuery(document).ready(function() {
sidebarHandler();
});