Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bah, forgot to test it, this is the fix
  • Loading branch information
Gilles van den Hoven committed Jun 27, 2006
1 parent 55f0806 commit b5a1e0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions form/form.js
Expand Up @@ -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});
Expand Down

0 comments on commit b5a1e0c

Please sign in to comment.