1 回答
TA贡献1807条经验 获得超9个赞
<!DOCTYPE html><html><head> <title>jQuery bootstrap-select可搜索多选下拉列表插件</title> <script src="../js/jquery-1.11.3.js"></script> <script type="text/javascript" src="../js/bootstrap-select.js"></script> <link rel="stylesheet" type="text/css" href="../css/bootstrap-select.css"/> <link href="../css/dist/css/bootstrap.css" rel="stylesheet"/> <script src="../css/dist/js/bootstrap.js"></script> <script type="text/javascript"> $(document).ready(function () { $('.selectpicker').selectpicker({ 'selectedText': 'cat', header: 'Select a condiment', 'noneSelectedText': '请选择', 'deselectAllText': '全不选', 'selectAllText': '全选' }); }); </script></head><body><select class="selectpicker" multiple data-live-search="true" data-actions-box="true"> <option>name</option> <option>addr</option> <option>email</option> <option selected>phone</option> <option>tel</option></select></body></html>
- 1 回答
- 0 关注
- 3980 浏览
添加回答
举报