bah, forgot to test it, this is the fix
This commit is contained in:
parent
55f08065a9
commit
b5a1e0c8a6
|
@ -198,9 +198,7 @@ $.fn.serialize = function() {
|
|||
if ((p == 'SELECT' || p == 'OPTGROUP') && !this.selected) return;
|
||||
|
||||
var n = this.name;
|
||||
if (!n && p == 'OPTGROUP' && (par = par.parentNode))
|
||||
n = par.name;
|
||||
|
||||
if (!n) n = (p == 'OPTGROUP') ? par.parentNode.name : par.name;
|
||||
if (n == undefined) return;
|
||||
|
||||
a.push({name: n, value: this.value});
|
||||
|
|
Loading…
Reference in a new issue