function paytypeBl(){
$("#addspan").empty();
var fkfs=$("#fkfs ").val();
if(fkfs=='1'||fkfs=='2'||fkfs=='6'){
$("#addspan").append("%");
}
if(fkfs=='3'||fkfs=='4'||fkfs=='5'){
$("#addspan").append("天");
}
}
$(document).ready(function() {
paytypeBl();
});
//页面初始化的时候调用一次
<td>
<select id="fkfs" name="fkfs" οnchange="paytypeBl()"><option value='1' <c:if test="${goods.price.fkfs eq 1}">selected</c:if> >货到付款</option>
<option value='2' <c:if test="${goods.price.fkfs eq 2}">selected</c:if> >预付款</option>
<option value='3' <c:if test="${goods.price.fkfs eq 3}">selected</c:if> >验收合格付款</option>
<option value='4' <c:if test="${goods.price.fkfs eq 4}">selected</c:if> >挂账后付款</option>
<option value='5' <c:if test="${goods.price.fkfs eq 5}">selected</c:if> >发货当月付款</option>
<option value='6' <c:if test="${goods.price.fkfs eq 6}">selected</c:if> >发货前付款</option>
</select>
</td>
<td>
<input type="text" class="cinput" size="9" name="fkbl"
id="fkbl_${goods.id.xh }_0" maxlength='10' /> <span id="addspan"></span>
</td>