Edit in JSFiddle

$.fn.equalHeight = function() {
    var maxHeight = 0;
    this.find("li").each(function(i) {
        if(maxHeight < $(this).height()) {
            maxHeight = $(this).height();
        }		
    });
    this.find("li").height(maxHeight);
};
$("#s").equalHeight();