yogee yogee - 5 months ago 30
jQuery Question

retrieve checked option after result is displayed in multi select jquery

The check box selection at the drop down list is NOT retained after the result is being populated.

sample code

$("#DDLCheck").multiselect({
header: "Select Options Below"
});

var array_of_checked_values = $("select").multiselect("getChecked").map(function () {
return this.value;
});


i want to show checked option after the search result

Answer
if (_all != null && _all != "" && _all != undefined && _all == "ALL") {
    $("select").multiselect("widget").find("input:checkbox:eq(0)").trigger("click");
}