• jQuery LigerUI系列:ligerComboBox


    1. ligerComboBox参数、方法及事件

    1.1 参数

    2. ligerComboBox示例

    2.1 初始化HTML select控件

    <link href="/Scripts/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet"/>
    <script src="/Scripts/jquery-1.11.3.js"></script>
    <script src="/Scripts/ligerUI/js/ligerui.all.js"></script>
    <select id="selWeekdays">
        <option value="0">星期日</option>
        <option value="1">星期一</option>
        <option value="2">星期二</option>
        <option value="3">星期三</option>
        <option value="4">星期四</option>
        <option value="5">星期五</option>
        <option value="6">星期六</option>
    </select>
    <input id="hdWeekday" type="hidden" />
    <div>
        <input type="button" value="获取" onclick="GetValue()" />
    </div>
    <script type="text/javascript">
        $(function () {
            $("#selWeekdays").ligerComboBox({
                valueFieldID: 'hdWeekday'
            });
        });
    
        function GetValue() {
            alert($("#hdWeekday").val());
        }
    </script>
  • 相关阅读:
    4.23上机练习
    4.17java作业
    4.16java作业
    leetcode 189
    leetcode 172
    leetcode 171
    leetcode 169
    win10内网外网智能访问
    leetcode 168
    leetcode 165
  • 原文地址:https://www.cnblogs.com/libingql/p/4558606.html
Copyright © 2020-2023  润新知