diff --git a/select2.js b/select2.js index 32c51cbb..9a08f750 100644 --- a/select2.js +++ b/select2.js @@ -1790,7 +1790,7 @@ var data = []; element.find(":selected").each2(function (i, elm) { - data.push({id: elm.attr("value"), text: elm.text()}); + data.push({id: elm.attr("value"), text: elm.text(), element: elm}); }); if ($.isFunction(callback))