is there a way to do something like document.getElementsByTagName("input")[0-4].value = "";
instead of using for loop?