From bdb8840fb421a8c154189282b4e165bb66916968 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Wed, 9 Apr 2014 12:36:43 +0200 Subject: [PATCH] Copy title attribute from original element --- select2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/select2.js b/select2.js index f9107f29..0339d4ad 100644 --- a/select2.js +++ b/select2.js @@ -694,6 +694,8 @@ the specific language governing permissions and limitations under the Apache Lic this.containerSelector="#"+this.containerId; this.container.attr("id", this.containerId); + this.container.attr("title", opts.element.attr("title")); + // cache the body so future lookups are cheap this.body = thunk(function() { return opts.element.closest("body"); });