We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4cf453 commit d29777cCopy full SHA for d29777c
src/selectize.js
@@ -129,7 +129,8 @@ $.extend(Selectize.prototype, {
129
130
if(inputId = $input.attr('id')) {
131
$control_input.attr('id', inputId + '-selectized');
132
- $('label[for='+inputId+']').attr('for', inputId + '-selectized');
+ var inputIdEscaped=inputId.replace( /(:|\.|\[|\]|,)/g, "\\$1" );
133
+ $('label[for='+inputIdEscaped+']').attr('for', inputId + '-selectized');
134
}
135
136
if(self.settings.copyClassesToDropdown) {
0 commit comments