multi-select
multi-select copied to clipboard
Where is the GetSelectedOptions Method
Where is the GetSelectedOptions Method that will return the text, value pairs?
Something like $(".ms-list").children("li.ms-selected"); will only return the text propery, how do I also get the value property?
how to get getSelectedOptions in .ms-selected ?
Just use another plugin...
@Wr4i7h did you find an another interesting plugin? if yes please suggest me.
A small hack i made.
Add into 'select' function at top of function
var sid=this.$element[0];
var ssid = sid.id;
$('#'+ssid+' option[value="'+value+'"]').attr('selected','selected');
And into 'deselect':
var sid=this.$element[0];
var ssid = sid.id;
$('#'+ssid+' option[value="'+value+'"]').removeAttr('selected');
After that you can just call your multiselect as $('#myMultiSelect').val()
and you get the selected values.
quite simply $("#select").val() ?