jQuery.fn.wrapInner = function(e) {
    return this.each(function(){
                 var o = jQuery(this);
                 var c = o.html();
                 o.empty().append(e).find(e).append(c).end();
    });
}; 