Hello,

Can anybody show me how you would I would validate the sum of several text
boxes?  This is what I'm trying to use but not having luck.. thanks in
advance.

function validate()
{
 if (document.newBillingInfo.SCEPbilledAmount.value +
document.newBillingInfo.SCEPpenaltyAmount.value +
document.newBillingInfo.SCEPdelinquentAmount.value !=
document.newBillingInfo.SCEPtotalAmount.value) 
        {
        alert("The total Billing amount does not add up correctly, Please
check the values.")
        document.newBillingInfo.SCEPbilledAmount.focus()
        return false;
        }       
        
        return true;
        
}
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to