var i=$("#mm td").length; alert(document.getElementById("mm").childNodes.length); alert($("#mm").childNodes.length);