How to use Bootstrap-select?

前端 未结 4 1539
半阙折子戏
半阙折子戏 2021-02-07 23:52

I’m new to this. I’m trying the Bootstrap-select but I’m not getting the desired effect like here https://developer.snapappointments.com/bootstrap-select/. I ha

4条回答
  •  不知归路
    2021-02-08 00:52

    Include jquery library and bootstrap js

    
    
    

    and code as

    $(document).ready(function() {
    $('.selectpicker').selectpicker({
          style: 'btn-info',
          size: 4
      });
      });
    

    Note: Always used minified css and js, to increase page speed

提交回复
热议问题