效果:成型日期-齡期=要求試驗日期!
事件:
當改變成型日期文字方塊後觸發事件!
改變齡期文字方塊後觸發事件!
代碼:
(說明:成型日期ID: tbcxrq 齡期ID: tblq 要求試驗日期ID: tbyqsyrq)
if ($("#").val() == "" || $("#").val() == " ") {
$("#").val( else {
.ClientID %>").val();
MoldingDate = MoldingDate.re var d = new Date(MoldingDate);
var AgeDate = $("# ").val();
if (parseInt(month) day = d.getDate();
if (parseInt(day)
var date = (d.getFullYear()) "-" month "-" day;
tbyqsyrq.ClientID %>").val(date);
}
}
});