I\'m quite new to javascript/jquery stuff, but i would like to do this kind of thing with it:
I have four divs side-by-side like this and content in each one. Now if
This is straight out of the jQuery documentation pages:
$.fn.equalizeHeights = function(){ return this.height( Math.max.apply(this, $(this).map(function(i,e){ return $(e).height() }).get() ) ) } $('input').click(function(){ $('div').equalizeHeights(); });