Skip to content
Permalink
Browse files
Bah i need some sleep...
  • Loading branch information
Gilles van den Hoven committed Jun 27, 2006
1 parent b5a1e0c commit 6bf8667410f10dc505b81261a568e6a42e1ce809
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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});

0 comments on commit 6bf8667

Please sign in to comment.