Checking for multiples of 15

by "Rick Nelson" <rman(at)cmn.net>

 Date:  Wed, 5 Jan 2000 07:21:32 -0700
 To:  <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
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