mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Attributes: return empty array for select-multiple with no values
Fixes gh-2562 Close gh-2689
This commit is contained in:
@@ -90,7 +90,7 @@ jQuery.extend( {
|
||||
var value, option,
|
||||
options = elem.options,
|
||||
index = elem.selectedIndex,
|
||||
one = elem.type === "select-one" || index < 0,
|
||||
one = elem.type === "select-one",
|
||||
values = one ? null : [],
|
||||
max = one ? index + 1 : options.length,
|
||||
i = index < 0 ?
|
||||
|
||||
Reference in New Issue
Block a user