I have the following script, which I can’t seem to get to work in jsfiddle:
I can’t see why this is not working?
var $widget = $("<div class='widget widget_" + i + "'>").appendTo( $(".column_" + j );
$("<div class='widget_header widget_header_" + i + "'>").appendTo( $widget );
$("<div class='widget_sub_header widget_sub_header_" + i + "'>").appendTo( $widget );
$("<div class='widget_content widget_content_" + i + "'>").appendTo( $widget );
$("<div class='widget_footer widget_footer_" + i + "'>").appendTo( $widget );
There was an error in your script. You forgot the closing bracket in the following line:
DEMO: http://jsfiddle.net/wq6Cc/18/