From 93ed30d67a05d2fe08b4c450015b009a3f675163 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Wed, 19 Sep 2012 19:33:46 -0700 Subject: [PATCH] mange disabled attr on source element. fixes #427 --- select2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/select2.js b/select2.js index 876e206c..e924b2e1 100644 --- a/select2.js +++ b/select2.js @@ -855,6 +855,7 @@ this.enabled=true; this.container.removeClass("select2-container-disabled"); + this.opts.element.removeAttr("disabled"); }, // abstract @@ -865,6 +866,7 @@ this.enabled=false; this.container.addClass("select2-container-disabled"); + this.opts.element.attr("disabled", "disabled"); }, // abstract