$("#a").css("height", $("#b").css("height") );
Which then could be included in the callback function, say:
$.ajax({ ... success:function(msg){ // could be optimized by storing off of the comparision if( $("#a").height() > $("#b").height() ){ $("#b").css("height", $("#a").css("height") ); } } });
source share