var fieldname = document.forms[0].$$SelectDoc; for(i = 0; i < fieldname.length; i ++){ fieldname[i].checked=true }