When using the drop-down box plugin, such as updating data records, we need to bring out the original old data.
Using the following assignment, you need to run this code after the drop-down box plugin is initialized.
obj.selectpicker('val',aValue);
The following code is problematic, please refer to:
obj.append(htmlDemo2).selectpicker({ width: '100%', liveSearch: true, size: 8 }).selectpicker('val',aValue);
In the bootstrap component, there should be many such problems, the closing of the modal box, I have also encountered similar problems.