From 15b654a170391f976d82c2eab02f18164362a224 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Fri, 3 Aug 2012 06:19:22 -0700 Subject: [PATCH] support readonly attribute by disabling select2. fixes #293 --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 6c565f7d..47fbf872 100755 --- a/select2.js +++ b/select2.js @@ -559,7 +559,7 @@ this.monitorSource(); } - if (opts.element.is(":disabled")) this.disable(); + if (opts.element.is(":disabled") || opts.element.is("[readonly='readonly']")) this.disable(); }, // abstract