Don't send an <option> tag if it's disabled, even if it's selected

This commit is contained in:
Behind The Math
2018-05-29 22:22:09 -04:00
parent 5885d76f37
commit 29d7b4c664

View File

@@ -67,7 +67,7 @@ function parseFormElements(el) {
for (var i = 0; i < element.options.length; i++) {
opt = element.options[i]
if (opt.selected) {
if (opt.selected && !opt.disabled) {
values.push(opt.hasAttribute("value") ? opt.value : opt.text)
}
}