1. 程式人生 > >jsp頁面_標籤選擇器的運用和_append_empty屬性

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>*/