Skip to content
Permalink
Browse files

bah, forgot to test it, this is the fix

  • Loading branch information
Gilles van den Hoven
Gilles van den Hoven committed Jun 27, 2006
1 parent 55f0806 commit b5a1e0c8a6f06ae774e3d461f8d499a8049d9383
Showing with 1 addition and 3 deletions.
  1. +1 −3 form/form.js
@@ -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});

0 comments on commit b5a1e0c

Please sign in to comment.
You can’t perform that action at this time.