Boostrap multiselect select all checked by default

后端 未结 2 871
情话喂你
情话喂你 2021-02-03 11:52

i use bootstrap-multiselect (v0.9.8) with option

 includeSelectAllOption: true 

it is posible that select all to be checked by default when pag

2条回答
  •  逝去的感伤
    2021-02-03 12:26

    With bootstrap-select V.1.12.4, the solution is simpler:

    Example HTML:

    
    

    Example javascript:

    $(function() {
        $('#my-multi-select').selectpicker({
        });
        $("#my-multi-select").selectpicker('selectAll');
    });
    

提交回复
热议问题