We have a pop-up dialog with multiple checkboxes that are each created using the following code segment:
var cb = jQuery("<input></input>", { id: "cb_" + lid, name: "cb_" + lid, type: "checkbox" }).addClass("targetLayers_cb"); // CSS class used to facilitate validation only
cb.prop("checked", li.searchable);
The boolean li.searchable field is used to determine whether the checkbox is checked or not on creation. The appearance of the checkboxes is not changing after the first invocation even if the li.searchable field changes.
I expect them to show based on the latest field value.