Bootstrap-select I think everyone is not strange is a front-end drop-down box plug-in is very easy to use, in the Select tab set properties can do a lot of function control, but how to change after the initialization of the Internet to find all over the Chinese English also did not have an account of their research for a long time, Of course some people will kill the regeneration as too low, I decided to fill this gap.
JS Control Select Property Change is actually very simple, do not need
$ (' #goodsNames '). Selectpicker (' render '); $ (' #goodsNames '). Selectpicker (' refresh ');
To re-render only with
$ (". Selectpicker", Actionsbox:true// Select All and uncheck buttons in the drop-down option Countselectedtext: "{0} item selected", Selectedtextformat:"Count > 5", multiple:"true", maxoptions = "2"})
Smart people have seen it, that's how it's set, it's worth noting that a property such as multiple can be directly assigned a value of TRUE or false to control, such as data-max-options, such as the removal of data and the name of the hump to use.
Bootstrap-select JS jquery Control Select Property changes