jsp页面_标签选择器的运用和_append_empty属性

效果图
以上图片为效果图 ↑↑

function addCreditorMatchMoney(){
            var creditorIsCyclic = $("input[name='creditorIsCyclic'][type='checkbox']:checked");
            var cBoxLength = creditorIsCyclic.length;
            if(cBoxLength=="2"){
                 var info="<td class='f66' align='left'>长期匹配金额</td><td class='f66'"+ 
                          "align='left'><input type='text' id='longCreditorMatchMoney' value='0'/>"+
                          "<span style='color: red'>*</span></td><td class='f66' align='left'>短期匹配金额"+
                          "</td><td class='f66' align='left'><input type='text' id='shortCreditorMatchMoney'"+
                          "value='0'  disabled='disabled'/><span style='color: red'>*</span></td>"; 
                 $("#creditorMatchMoney").append(info);
            }else{
                $("#creditorMatchMoney").empty();
            } 

}
/*<tr>
<td class="f66" align="left">债权匹配类型</td>
    <td class="f66" align="left"><input type="checkbox" checked="checked" id="creditorIsCyclic" name="creditorIsCyclic" 
    value="0" onchange="addCreditorMatchMoney()"/>长期匹配<input type="checkbox" id="creditorIsCyclic1" name="creditorIsCyclic" 
    value="1" onchange="addCreditorMatchMoney()"/>短期匹配<span style="color: red">*</span></td>
</tr>
<tr id="creditorMatchMoney"></tr>*/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值