multi-select
multi-select copied to clipboard
Easy way to get text of selected
(#my_select).text() pulls ALL source text,
need a simple way to get the text of the options
What options? Selected? Unselected? If you just want options labels, just loop with $.each.
$("#IdconceptosSeleccionados").multiSelect({
afterSelect: function (values) {
var idconceptotext = '';
$('#IdconceptosSeleccionados :selected').each(function () {
if ($(this).val() === values) {
idconceptotext = $(this).text();
}
});
}
});