From: Gilles van den Hoven Date: Tue, 27 Jun 2006 20:56:51 +0000 (+0000) Subject: fix for $.fn.serialize bug (see mailinglist) X-Git-Tag: 1.0a~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=55f08065a9a2758134bc2dee6b338b888d073967;p=jquery.git fix for $.fn.serialize bug (see mailinglist) --- diff --git a/form/form.js b/form/form.js index fb645bdbc..bec88706a 100644 --- a/form/form.js +++ b/form/form.js @@ -197,7 +197,7 @@ $.fn.serialize = function() { var p = par.nodeName.toUpperCase(); if ((p == 'SELECT' || p == 'OPTGROUP') && !this.selected) return; - var n = this.name || par.name; + var n = this.name; if (!n && p == 'OPTGROUP' && (par = par.parentNode)) n = par.name;