Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 39,541 times

Related Categories

Number Validation

tlkelley

You can add this IF statement to any javascript function and change it as needed. This will validate whether a field is only numbers.

   if(isNaN(myForm.txt_myField.value))
   {
     alert("Invalid data format.\n\nOnly numbers are allowed.");
     myForm.txt_myField.focus();
     return (false);
   }

Always working hard!!

Comments