[Javascript] is numberic??

Scott.Wiseman swiseman at remax-cahi.com
Mon Jun 17 16:34:14 CDT 2002


thank you Lori...


-----Original Message-----
From: Mckinney, Lori K [mailto:lkmckinn at ingr.com]
Sent: Monday, June 17, 2002 2:31 PM
To: javascript at LaTech.edu
Subject: RE: [Javascript] is numberic??


You could also use a regular expression to strip out the non-digit
characters.

   var str = window.document.myform.RMList.value;
   var ns = str.replace(/\D/ig,"");

>
>I have tried the
>
>alert ( isNaN(parseInt(window.document.myform.RMList.value)) );
>
>to figure this out.
>
>but it will allow me to enter this "11dd44"
>this is not a number
>
>so what gives?
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list