<script>
jQuery(document).ready(function(){
// Select and loop the mainblogimage element of the elements you want to equalise
jQuery('.mainblogimage').each(function(){
// Cache the highest
var highestBox = 0;
// Select and loop the elements you want to equalise
jQuery('.singlebocx', this).each(function(){
// If this box is higher than the cached highest then store it
if(jQuery(this).height() > highestBox) {
highestBox = jQuery(this).height();
}
});
// Set the height of all those children to whichever was highest
jQuery('.singlebocx',this).height(highestBox);
});
});
</script>
jQuery(document).ready(function(){
// Select and loop the mainblogimage element of the elements you want to equalise
jQuery('.mainblogimage').each(function(){
// Cache the highest
var highestBox = 0;
// Select and loop the elements you want to equalise
jQuery('.singlebocx', this).each(function(){
// If this box is higher than the cached highest then store it
if(jQuery(this).height() > highestBox) {
highestBox = jQuery(this).height();
}
});
// Set the height of all those children to whichever was highest
jQuery('.singlebocx',this).height(highestBox);
});
});
</script>
Comments
Post a Comment