diff --git a/src/js/select2/utils.js b/src/js/select2/utils.js
index 53d82f3d64..4c96034a0c 100644
--- a/src/js/select2/utils.js
+++ b/src/js/select2/utils.js
@@ -332,6 +332,8 @@ define([
if (Utils.__cache[id] != null) {
delete Utils.__cache[id];
}
+
+ element.removeAttribute('data-select2-id');
};
return Utils;
diff --git a/tests/unit-jq1.html b/tests/unit-jq1.html
index 730b35db5f..1ef049c891 100644
--- a/tests/unit-jq1.html
+++ b/tests/unit-jq1.html
@@ -94,6 +94,7 @@
+