From 8008bfa8dc93c5bd42d5f2f76bda544c044fcaab Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Mon, 6 May 2013 14:12:57 -0700 Subject: [PATCH] attr to prop change. #1260 --- select2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/select2.js b/select2.js index d9866884..1f09e4c4 100644 --- a/select2.js +++ b/select2.js @@ -765,7 +765,7 @@ the specific language governing permissions and limitations under the Apache Lic text:element.text(), element: element.get(), css: element.attr("class"), - disabled: equal(element.attr("disabled"), "disabled"), + disabled: element.prop("disabled"), locked: equal(element.attr("locked"), "locked") }; } else if (element.is("optgroup")) { @@ -1714,7 +1714,7 @@ the specific language governing permissions and limitations under the Apache Lic this.search.val(this.focusser.val()); } this.search.focus(); - this.focusser.attr("disabled", "disabled").val(""); + this.focusser.prop("disabled", true).val(""); this.updateResults(true); this.opts.element.trigger($.Event("open")); },