<form id="myForm"> <input type="text" name="a" /> <input type="text" name="a" /> <input type="text" name="a" /> </form>
var form = document.getElementById("myForm"); var inputs = form.getElementsByTagName("INPUT");