Skip to content

Commit f7819a7

Browse files
author
Eric Hynds
committed
Merge pull request #347 from doits/fixid
Fix id duplication
2 parents 4ff6048 + af2d07c commit f7819a7

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)