mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
fix for $.fn.serialize bug (see mailinglist)
This commit is contained in:
parent
d25d393a33
commit
55f08065a9
@ -197,7 +197,7 @@ $.fn.serialize = function() {
|
|||||||
var p = par.nodeName.toUpperCase();
|
var p = par.nodeName.toUpperCase();
|
||||||
if ((p == 'SELECT' || p == 'OPTGROUP') && !this.selected) return;
|
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))
|
if (!n && p == 'OPTGROUP' && (par = par.parentNode))
|
||||||
n = par.name;
|
n = par.name;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user