|
- var form = document.getElementById("frm1");
- var elements = new Array();
- var tagElements = form.getElementsByTagName('input');
- for (var j = 0; j < tagElements.length; j++){
- elements.push(tagElements[j]);
- console.log(tagElements[j].name,tagElements[j].id,tagElements[j].value);
-
- }
复制代码
|
|