How can i get the selected values from the chosen Multi-select Box?
$("#select-id").chosen().val()
Like from any regular input/select/etc...:
$("form.my-form .chosen-select").val()
This worked for me
$(".chzn-select").chosen({
disable_search_threshold: 10
}).change(function(event){
if(event.target == this){
alert($(this).val());
}
});
$("#select-id").chosen().val()
this is the right answer, I tried, and the value passed is the values separated by ","
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With