阅读背景:

js:jquery multiSelect 多选下拉框实例

来源:互联网 
<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="format-detection" content="telephone=no">
        <title>三级联动多选下拉框</title>
        <script src="<?php echo base_url() ?>js/jquery-1.7.2.min.js"></script>
        <link href="/go.html?url=<?php echo base_url(); ?>css/buildfair/jquery-ui.css" rel="stylesheet" />
        <script src="<?php echo base_url() ?>js/jquery-ui.min.js"></script>
        <script src="<?php echo base_url() ?>js/jquery.multiselect.min.js"></script>
        <script src="<?php echo base_url() ?>js/jquery.multiselect.zh-cn.js"></script>
        <link href="/go.html?url=<?php echo base_url(); ?>css/buildfair/jquery.multiselect.css" rel="stylesheet"/>

        <script src="<?php echo base_url() ?>js/jquery.multiselect.filter.js"></script>
        <link href="/go.html?url=<?php echo base_url(); ?>css/buildfair/jquery.multiselect.filter.css" rel="stylesheet"/>

    </head>
    <body>
        <div>   
            <p>多选下拉框:</p>
            <select id="first_dist" multiple="multiple" data-level="1" style="display: none;">
                <?php foreach ( $firstDist as $row ): ?>
                    <option value="<?php echo $row[ 'id' ]; ?>"><?php echo $row[ 'name' ]; ?></option>
                <?php endforeach; ?>
            </select>
            <select id="second_dist" multiple="multiple" data-level="2" style="display: none;"> 
            </select>
            <select id="third_dist" multiple="multiple" data-level="3" style="display: none;"> 
            </select>
            <select id="fourth_dist" multiple="multiple" data-level="4" style="display: none;"> 
            </select>
            <br/>
        </div>
        <div>
            <p>单选下拉框:</p>
            <select id="first_dist_single" style="display: none;">
                <?php foreach ( $firstDist as $row ): ?>
                    <option value="<?php echo $row[ 'id' ]; ?>"><?php echo $row[ 'name' ]; ?></option>
                <?php endforeach; ?>
            </select>
        </div>

        <div>
            <p>单选下拉框(带搜索功能):</p>
            <select id="first_dist_single_filter" style="display: none;">
                <?php foreach ( $firstDist as $row ): ?>
                    <option value="<?php echo $row[ 'id' ]; ?>"><?php echo $row[ 'name' ]; ?></option>
                <?php endforeach; ?>
            </select>
        </div>
    </body>
</html><!doctype html>
<html lang="en">
    <head>
   



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: