zoukankan      html  css  js  c++  java
  • Jquery

    attr() 方法设置或返回被选元素的属性值。

    var startTime = $("input[name='startTime']").val();

    var endTime = $("input[name='endTime']").val();

    //统计类型
    var siteFeeProject = $("input[name='siteFeeProject']:checked").val();

    <tr>
    <td>
    <label class="label">交易时间</label>
    <input type="text" name="startTime" class="text" style=" 150px;" readonly="readonly" onclick="laydate()"/>
    <span>--</span>
    <input type="text" name="endTime" class="text" style=" 150px;" readonly="readonly" onclick="laydate()"/>
    </td>
    <td>
    <input type="radio" value = "1" name="siteFeeProject" checked="checked"> 按网点、费用项目统计

    </td>
    <td>
    <input type="radio" value = "2" name="siteFeeProject"> 按费用项目统计
    </td>
    </tr>

    var accountTypeId =  $("#accountTypeId option:selected").val();

    <td>
    <label class="label">账户类型</label>
    <select id="accountTypeId" name="accountTypeId">
    <option value="10" style="150px;">普通</option>
    <option value="12" style="150px;">代收货款</option>
    <option value="13" style="150px;">业务员</option>
    </select>
    </td>


    var centerId = $("input[name='centerId']").val();

    <td>
    <label class="label">开户行</label>
    <input type="text" name="centerName" id="centerName" class="text txts" onkeyup="queryCenter(event,this,'centerId','2001');"/>
    <input type="hidden" name="centerId" class="centerId"/>
    </td>

    抱怨没有用,只能靠自己
  • 相关阅读:
    软件測试培训笔记
    spring test---測试SpringMvc初识
    第1章第3节 线性表的比較
    Remove Duplicates from Sorted List leetcode
    泛型
    我的改进版2048(1)
    docker镜像和加速
    在 Azure Web 应用中创建 PHP 应用程序
    使用 Azure 门户创建 Windows 虚拟机
    使用 Azure 门户创建 Linux 虚拟机
  • 原文地址:https://www.cnblogs.com/mybatis/p/6245168.html
Copyright © 2011-2022 走看看