He I trying get this code to work with IE9
It works in IE 10, chrome and firefox
Having problems with IE9 and I am not getting an error code.
- $('.row').has('.columns:nth-child(2)').each(function () {
var $boxes = $(this).children('.columns').children('.box');
$boxes.css('height','auto');
if (window.innerWidth > 768) {
var maxHeight = 0;
$boxes.each(function () {
if ($(this).innerHeight() > maxHeight) maxHeight = $(this).innerHeight();
});
$boxes.css('height',maxHeight);
} else if ((window.innerWidth > 767) || (window.innerWidth > 769)) {
var maxHeight = 0;
$boxes.each(function () {
if ($(this).innerHeight() > maxHeight) maxHeight = $(this).innerHeight();
});
$boxes.css('height',maxHeight);
} else if (window.innerWidth < 767) {
return false;
}
});