大家好,
<script type="text/javascript">
function duedatecal(){
var invoicedate = $(".invoicedate").val();
var paymentterms = $(".paymentterms").html();
}
</script>
<apex:form>
Date:
<Apex:inputtext value="{!dateIn}" id="time" styleclass="invoicedate" onblur="duedatecal();"/> //say suppose date is 06/03/2013
Payment Days:
<apex:outputtext value="{!payment.Net__c}" styleclass="paymentterms" /> //say suppose will get 10 days here
Due date:
<apex:outputtext value="{!duedate}" styleclass="duedate"/> // output shld be 16/03/2013
</apex:form>
每当我更改 inputtext(of Date) 时,应通过添加 Date+payment Days.Help 相应地显示到期日。