JavaScript validation

    Date: 08/04/05 (Javascript Community)    Keywords: java

    I have a form with 2 input boxes, lets call them debit and credit.

    When the form is submitted, I want to call a function that checks that there is either a debit amount filled in OR a credit amount, but not both! They can both be 0.00 but they can't both be more than 0.00.

    Sounds rather easy, but I have major difficulties with Javascript down to the syntax.

    Any help? Thanks!

    Source: http://www.livejournal.com/community/javascript/72808.html

« Full-View Select Menu || JavaScript reading CSS values »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home