diff --git a/select2.js b/select2.js index a135d424..1908d493 100644 --- a/select2.js +++ b/select2.js @@ -1470,7 +1470,7 @@ the specific language governing permissions and limitations under the Apache Lic var width = resolveContainerWidth.call(this); if (width !== null) { - this.container.attr("style", "width: "+width); + this.container.css({"style": "width: "+width}); } } });