Don't send an <option> tag if it's disabled, even if it's selected
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user