Fix parsing values of option elements in forms #162
@@ -67,8 +67,8 @@ function parseFormElements(el) {
|
|||||||
|
|
||||||
for (var i = 0; i < element.options.length; i++) {
|
for (var i = 0; i < element.options.length; i++) {
|
||||||
opt = element.options[i]
|
opt = element.options[i]
|
||||||
if (opt.selected) {
|
if (opt.selected && !opt.disabled) {
|
||||||
values.push(opt.value || opt.text)
|
values.push(opt.hasAttribute("value") ? opt.value : opt.text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user