diff --git a/select2.js b/select2.js index 76e984d0..611f27bf 100755 --- a/select2.js +++ b/select2.js @@ -942,7 +942,7 @@ */ // abstract opening: function() { - var cid = this.containerId, selector = "#"+ cid, + var cid = this.containerId, selector = "#"+ cid.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1'), scroll = "scroll." + cid, resize = "resize." + cid; this.container.parents().each(function() {