//综合遍历:
javascript:var cc = document.forms.item(0).elements;for(var i=0;i<cc.length;i++){alert(cc.item(i).id + ' \r\n' + cc.item(i).name + ' \r\n' + cc.item(i).value);}
转载于:https://www.cnblogs.com/iTaoqi/archive/2013/03/02/2940174.html
//综合遍历:
javascript:var cc = document.forms.item(0).elements;for(var i=0;i<cc.length;i++){alert(cc.item(i).id + ' \r\n' + cc.item(i).name + ' \r\n' + cc.item(i).value);}
转载于:https://www.cnblogs.com/iTaoqi/archive/2013/03/02/2940174.html