Skip to content

Commit af2d07c

Browse files
committed
Fix id duplication
1 parent 4ff6048 commit af2d07c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.multiselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
var checkboxContainer = this.checkboxContainer;
130130
var optgroups = [];
131131
var html = "";
132-
var id = el.attr('id') || multiselectID; // unique ID for the label & option tags
132+
var id = el.attr('id') || multiselectID++; // unique ID for the label & option tags
133133

134134
// build items
135135
el.find('option').each(function(i) {

0 commit comments

Comments
 (0)