zoukankan      html  css  js  c++  java
  • 基础查询,多选,全选,分页功能

         <script type="text/javascript">

            $(document).ready(function () {//预加载

                $('#chkAll').click(

                function () {

                    $("INPUT[type='checkbox']").attr('checked', $('#chkAll').is(':checked'));

                });

    //            $('#chkAll').click(

                function () {

                    $("input[name='chkItem']").each(function () {

                        this.checked = $('#chkAll').is(':checked');

                    }); 

                });

                $("#DropDownList1").change(function () {

                    window.location.href = "整体.aspx?page=" + $("#hidPage").val() + "&score=" + $(this).val() + "&search=" + $("#searchBox").val();

                   

            });

            });

                <asp:DropDownList ID="DropDownList1" runat="server">

                    <asp:ListItem Text="查询分数" Value="0"></asp:ListItem>

                    <asp:ListItem Text="90分以上" Value="90 and 100"></asp:ListItem>

                </asp:DropDownList>

     <asp:CheckBox ID="chkAll" runat="server" Text="全选" />

    后台代码的取值 string score = HttpContext.Current.Request["score"];

  • 相关阅读:
    BZOJ1430小猴打架——prufer序列
    [集训队作业2018]蜀道难——TopTree+贪心+树链剖分+链分治+树形DP
    BZOJ5063旅游——非旋转treap
    bzoj 4570 妖怪
    Luogu 1452 Beauty Contest
    bzoj 1337 最小圆覆盖
    bzoj 1007 水平可见直线
    Luogu 4724 三维凸包
    bzoj 4827 礼物
    hdu 4348 To the moon
  • 原文地址:https://www.cnblogs.com/change4now/p/4525171.html
Copyright © 2011-2022 走看看