fix for $.fn.serialize bug (see mailinglist)

This commit is contained in:
Gilles van den Hoven 2006-06-27 20:56:51 +00:00
parent d25d393a33
commit 55f08065a9

View file

@ -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;