[Javascript] is numberic??

Mckinney, Lori K lkmckinn at ingr.com
Mon Jun 17 16:31:24 CDT 2002


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



More information about the Javascript mailing list