以上图片为效果图 ↑↑
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>*/