$('<li />', {'class': 'liBullet'}).append(
$('<div />', {'class': 'layerCheck'}).append(
$('<input />', {id: layer.id, type: "checkbox"})
)
).append(
$('<label />', {'for': layer.id, text: layer.name})
).append(
$('<div />', {id: 'legend' + layer.id, 'class': 'loadingLegend'})
).appendTo("#layer_list");
1
solved how to close the div in DOM JQuery [closed]