Chosen Jquery Plugin - getting selected values

Solution 1:

$("#select-id").chosen().val()

Solution 2:

Like from any regular input/select/etc...:

$("form.my-form .chosen-select").val()

Solution 3:

This worked for me

$(".chzn-select").chosen({

     disable_search_threshold: 10

}).change(function(event){

     if(event.target == this){
        alert($(this).val());
     }

});

Solution 4:

$("#select-id").chosen().val()

this is the right answer, I tried, and the value passed is the values separated by ","

Solution 5:

If anyone wants to get only the selected value on click to an option, he can do the follow:

$('.chosen-select').on('change', function(evt, params) {
    var selectedValue = params.selected;
    console.log(selectedValue);
});