I have made a quick Jsbin: http://jsbin.com/ujabew/edit#javascript,html,live
What i\'m trying to achieve is to find out which is the largest
Here:
var maxWidth = Math.max.apply( null, $( elems ).map( function () { return $( this ).outerWidth( true ); }).get() );
Live demo: http://jsfiddle.net/rM4UG/