Number Validation

Results 1 to 2 of 2

Thread: Number Validation

  1. #1
    Join Date
    Dec 1969

    Default Number Validation

    I want to ensure that user enter only number in form field What will be the javascript for that<BR>Can some one help me<BR>I shall be very thankful

  2. #2
    Join Date
    Dec 1969

    Default RE: Number Validation

    &#060;script&#062;<BR>function CheckNumber()<BR>{<BR> var num1 = window.document.form1.cnum.value;<BR> if (isNaN(num1))<BR> {<BR> alert("Correct Number");<BR> }<BR>}<BR>&#060;/script&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts