drifterz28
12/12/2012 - 2:37 PM

Set equal height of 2 tags

Set equal height of 2 tags

// set equal height with 2 tags
function set_height(div1, div2){
  var height1 = $(div1).height();
  var height2 = $(div2).height();
  if(height1 > height2){
    $(div2).css('min-height',height1);
  }else{
    $(div1).css('min-height',height2);
  }
}