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