Wrap the widget content with a div and get the widget title outside? [closed]

I updated your jsfiddle: http://jsfiddle.net/geertdd/gNzun/3/

var $widget = $('.widget');
$widget.wrapInner('<div class="inner_widget" />');

var $title = $('.widget_title').remove();
$widget.prepend($title);

tech