FFFF Merge pull request #1062 from bigmihail/patch-1 · ITCSsDeveloper/select2@0fe95eb · GitHub
Skip to content

Commit 0fe95eb

Browse files
committed
Merge pull request select2#1062 from bigmihail/patch-1
Use $.prop() to get "multiple" attribute
2 parents adb126e + 381f173 commit 0fe95eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2873, 6D06 7 +2873,7 @@ the specific language governing permissions and limitations under the Apache Lic
28732873
opts.element = $(this);
28742874

28752875
if (opts.element.get(0).tagName.toLowerCase() === "select") {
2876-
multiple = opts.element.attr("multiple");
2876+
multiple = opts.element.prop("multiple");
28772877
} else {
28782878
multiple = opts.multiple || false;
28792879
if ("tags" in opts) {opts.multiple = multiple = true;}

0 commit comments

Comments
 (0)