I need to get the max width(just the one width) of the child div in the wrapper div element
-
A not-so-difficult example function to consider; not as elegant as cwolves, but probably easier to follow if you're a beginner.
function getMaxChildWidth(sel) {
max = 0;
$(sel).children().each(function(){
c_width = parseInt($(this).width());
if (c_width > max) {
max = c_width;
}
});
return max;
}
http://jsfiddle.net/userdude/rMSuJ/1/