Number Field Divisibility / Remainder JS Validation

Mindwatering Incorporated

Author: Tripp W Black

Created: 01/05/2007 at 12:47 PM

 

Category:
Notes Developer Tips
JavaScript

Issue:
Number field's value needs to be checked to ensure the amount entered is a multiple of some base.
For example, this function was used to verify that amount entered was divisible for $10. This ensures that the amount entered are a multiple of $10 bills (or higher - e.g. 50s. or 100s).

checknumberdivisibility.txt

previous page