var select = document.getElementById('sel').getElementsByTagName('select'); for (var i =0; i < select.length; i++) { console.log(select[i].outerHTML); }