bah, forgot to test it, this is the fix

This commit is contained in:
Gilles van den Hoven 2006-06-27 21:26:25 +00:00
parent 55f08065a9
commit b5a1e0c8a6

View file

@ -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});