I am using the select2 control, loading data via ajax. This requires the use of the tag.
Now, I want to retrieve the selecte
Used this for show text
var data = $('#id-selected-input').select2('data'); data.forEach(function (item) { alert(item.text); })