开发者

retrieve checked option after result is displayed in multi select jquery

开发者 https://www.devze.com 2023-01-25 02:41 出处:网络
The check box selection at the drop down list is NOT retained after the result is being populated. sample code

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 = $(开发者_JAVA技巧"select").multiselect("getChecked").map(function () {
    return this.value;
});

i want to show checked option after the search result


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

精彩评论

暂无评论...
验证码 换一张
取 消