var inps = document.getElementsByTagName("input"); for (var i=0, l=inps.length; i