Skip to content

Commit 7140074

Browse files
committed
Merge pull request #541 from pawel-piskorz/master
Generating unique id for each input with multiple selects, even when they have the same name.
2 parents 09139be + 0c95f66 commit 7140074

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
@@ -140,7 +140,7 @@
140140
var description = this.innerHTML;
141141
var title = this.title === "" ? this.textContent : this.title;
142142
var value = this.value;
143-
var inputID = 'ui-multiselect-' + (this.id || id + '-option-' + i);
143+
var inputID = 'ui-multiselect-' + multiselectID + '-' + (this.id || id + '-option-' + i);
144144
var isDisabled = this.disabled;
145145
var isSelected = this.selected;
146146
var labelClasses = [ 'ui-corner-all' ];

0 commit comments

Comments
 (0)