t
This commit is contained in:
126
index.html
Normal file
126
index.html
Normal file
File diff suppressed because one or more lines are too long
10
lib.js
Normal file
10
lib.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
function getFormData(elementList) {
|
||||||
|
let data = {}
|
||||||
|
for (let i = 0; i < elementList.length; i++) {
|
||||||
|
if(elementList[i].tagName == "BUTTON") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
data[elementList[i].name] = elementList[i].value
|
||||||
|
}
|
||||||
|
return data;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user