dragonfly_vbulletin3_import18538
New Member
I need yo close the div section after the my input section but its closed in the last session .My code and explanation html structure is given below ,\[code\] $doc.append( $(document.createElement("div")).attr({ 'class': 'layerCheck' }) .append( $(document.createElement("input")).attr({ id: layer.id, type: "checkbox" })) .append( $(document.createElement("label")).attr({ for: +layer.id }) ).text(layer.name) .append( $(document.createElement("div")).attr({ id:'legend' +layer.id, 'class': 'loadingLegend' }) )).appendTo("#layer_list");\[/code\]My Html Stucture :\[code\]<li class="liBullet"> <div class="layerCheck">xxxxx<div id="legend2" class="loadingLegend"></div> </div></li>\[/code\]neede one:\[code\] <li class='liBullet'> <div class='layerCheck'><input type='checkbox' id='0' /></div> <label for='0'>xxxxx</label> <div id='legend0' class='loadingLegend'></div>\[/code\]