插件介绍:bootstrap 左右移动多选框插件~Multiselect

官网:
http://www.jiaoben123.com/uploadfiles/demo/d19cb85fac5b4c74bb4e387852f7d23b/#documentation

引入文件:

css:
                <link href="statics/css/multiselect-master/style.css" rel="stylesheet" type="text/css">
js:
            <script src="statics/js/multiselect-master/multiselect.min.js" type="text/javascript">script>

用法:
HTML:

<div class="row">
    <div class="col-xs-5">
        <select name="from" class="js-multiselect form-control" size="8" multiple="multiple">
            <option value="1">Item 1option>
            <option value="2">Item 5option>
            <option value="2">Item 2option>
            <option value="2">Item 4option>
            <option value="3">Item 3option>
        select>
    div>

    <div class="col-xs-2">
        <button type="button" id="js_right_All_1" class="btn btn-block"><i class="glyphicon glyphicon-forward">i>button>
        <button type="button" id="js_right_Selected_1" class="btn btn-block"><i class="glyphicon glyphicon-chevron-right">i>button>
        <button type="button" id="js_left_Selected_1" class="btn btn-block"><i class="glyphicon glyphicon-chevron-left">i>button>
        <button type="button" id="js_left_All_1" class="btn btn-block"><i class="glyphicon glyphicon-backward">i>button>
    div>

    <div class="col-xs-5">
        <select name="to" id="js_multiselect_to_1" class="form-control" size="8" multiple="multiple">select>
    div>
div>

JS:

<script type="text/javascript">
jQuery(document).ready(function($) {
    $('.js-multiselect').multiselect({
        right: '#js_multiselect_to_1',
        rightAll: '#js_right_All_1',
        rightSelected: '#js_right_Selected_1',
        leftSelected: '#js_left_Selected_1',
        leftAll: '#js_left_All_1'
    });
});
script>

效果展示:
插件介绍:bootstrap 左右移动多选框插件~Multiselect_第1张图片

插件介绍:bootstrap 左右移动多选框插件~Multiselect_第2张图片

资源下载:
http://download.csdn.net/detail/kangguowei/9852628

不怕慢就怕干,静,净,敬。

你可能感兴趣的:(插件介绍)