in firefox this works fine var id = 1; $parent.append('<div id="c-r'+id+'" class="c-replies c-hide" style="display: none;"><ul id="c-rply-to'+id+'></ul></div>');
but in ie, no ul gets created. next i tried appending the ul to the newly created div (and yes, the div was found) var id = 1; $parent.append('<div id="c-r'+id+'" class="c-replies c-hide" style="display: none;"></div>'); #("#c-r"+id"").append("<ul></ul>"); that didnt work either. i had to resort to this var iediv = document.getElementById("c-r"+id); var newElem = document.createElement('ul'); newElem.id = "c-rply-to"+id+""; iediv.appendChild(newElem); can someone spot the problem?