We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fccc84c commit 9897694Copy full SHA for 9897694
1 file changed
select2.js
@@ -1612,7 +1612,7 @@
1612
var selected = element.find(":selected");
1613
// a single select box always has a value, no need to null check 'selected'
1614
if ($.isFunction(callback))
1615
- callback({id: selected.attr("value"), text: selected.text()});
+ callback({id: selected.attr("value"), text: selected.text(), element:selected});
1616
};
1617
}
1618
0 commit comments