jommbee
9/20/2013 - 12:34 PM

Elemente mit gemeinsamer class mit jquerry auf eine height bringen.

Elemente mit gemeinsamer class mit jquerry auf eine height bringen.

$(document).ready(function(){
  var max_height = 0;
	$('.sameheight').each(function(e) {
	  h = $(this).outerHeight();
	  if(typeof(h) != "undefined") {
	        if(h > max_height) {
	                max_height = h;
	        }
	  }
	});
	if(max_height > 0) {
	 $('.sameheight').outerHeight(max_height);
	}
});