Results 1 to 2 of 2

Thread: Validation

  1. #1
    Rolla Guest

    Default Validation

    How do I validate fields that are dynamically created?<BR>function validate()<BR>{<BR>if (window.document.the_form.qty.value !=NaN) <BR> { <BR> alert("Please enter a numeric for the quantity field."); <BR> window.document.location.reload(); <BR> return (false); <BR>}<BR>If I enter a letter it will give the alert<BR>but when I enter a number after it keeps giving the alert<BR><BR>Any help would be appreciated...<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Validation

    Not reload use focus(), reload will keep loading the page again and again

Posting Permissions

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