Ver originalchk = document.getElementsByTagName('input');for(i=0; i < chk.length; i++) {alert(chk[i].id);}