Note on the use of bootstrap-selectpicker drop-down box plugin

 

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.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327056747&siteId=291194637