Re: Checking for multiples of 15
by "Frank Boumphrey" <bckman(at)ix.netcom.com>
|
Date: |
Wed, 5 Jan 2000 10:52:21 -0500 |
To: |
"Rick Nelson" <rman(at)cmn.net>, <hwg-techniques(at)hwg.org> |
References: |
saags |
|
todo: View
Thread,
Original
|
|
> I would like to check not just for 15 but for any multiple of 15, any
> suggestions?
use the modulus operator.
HTH
Frank
----- Original Message -----
From: Rick Nelson <rman(at)cmn.net>
To: <hwg-techniques(at)hwg.org>
Sent: Wednesday, January 05, 2000 9:21 AM
Subject: Checking for multiples of 15
> Greetings,
>
> I have a javascript that will validate a form field:
>
> if (document.orderform.itemQuantity.value != "15") {
> alert("You need to order in increments of 15.")
> return false
> }
>
> I would like to check not just for 15 but for any multiple of 15, any
> suggestions?
>
> Thanks,
> Rick Nelson, webmaster
> RAM Designs http://www.ramdesigns.com/
> rman(at)cmn.net
>
>
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA