From caeb0ec9b775baf1b91cad859a2954d720d3af20 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Mon, 9 Feb 2015 17:43:16 -0500 Subject: [PATCH] Add jQuery 1.x data attribute note This adds a note about how nested data attributes do not work in jQuery 1.x due to a bug with the `$.fn.data` method. This is for https://github.com/select2/select2/issues/2969. --- docs/options.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/options.html b/docs/options.html index 1cda85e7..215bc3ca 100644 --- a/docs/options.html +++ b/docs/options.html @@ -76,7 +76,10 @@ $("select").select2({

You can also define nested configurations, which are typically needed for options such as AJAX. Each level of nesting should be separated by two - dashes (--) instead of one. + dashes (--) instead of one. Due to + a jQuery bug, + nested options using data-* attributes + do not work in jQuery 1.x.