pass button value in forms

This commit is contained in:
Dennis Eichhorn 2018-10-27 20:40:25 +02:00
parent c15a1573a2
commit 727fee799a

View File

@ -153,6 +153,7 @@
const selects = form.getElementsByTagName('select'),
textareas = form.getElementsByTagName('textarea'),
inputs = [].slice.call(form.getElementsByTagName('input')),
buttons = form.getElementsByTagName('button'),
canvas = form.getElementsByTagName('canvas'),
external = document.querySelectorAll('[form=' + this.id + ']'),
inputLength = inputs.length;
@ -169,6 +170,7 @@
Array.prototype.slice.call(inputs).concat(
Array.prototype.slice.call(selects),
Array.prototype.slice.call(textareas),
Array.prototype.slice.call(buttons),
Array.prototype.slice.call(external)
)
);