Bah i need some sleep...

This commit is contained in:
Gilles van den Hoven 2006-06-27 21:36:45 +00:00
parent b5a1e0c8a6
commit 6bf8667410

View file

@ -198,7 +198,7 @@ $.fn.serialize = function() {
if ((p == 'SELECT' || p == 'OPTGROUP') && !this.selected) return;
var n = this.name;
if (!n) n = (p == 'OPTGROUP') ? par.parentNode.name : par.name;
if (!n) n = (p == 'OPTGROUP') ? par.parentNode.name : (p == 'SELECT') ? par.name : this.name;
if (n == undefined) return;
a.push({name: n, value: this.value});