JS Form Validation Q...

Results 1 to 3 of 3

Thread: JS Form Validation Q...

  1. #1
    Join Date
    Dec 1969

    Default JS Form Validation Q...

    I need to verify that an inputted value in form field 1 is less than the value inputted into form field 2 of an ASP form. I&#039;m sure it can be done in JS but I could use a little direction. Does anyone know of any resources where I can go to learn to do this? or any sample code?<BR>Thanks<BR>Wally

  2. #2
    Grommit Guest

    Default RE: JS Form Validation Q...

    &#060;SCRIPT Language=Javascript&#062;<BR>&#060;!--<BR> function Validate(){<BR> if (document.forms(0).Field1.value&#062;=document.for ms(0).Field2.value){<BR> alert("Field1 is bigger than 2")<BR> }else{<BR> document.forms(0).submit();<BR> }<BR> }<BR>//--&#062;<BR>&#060;/SCRIPT&#062;

  3. #3
    Join Date
    Dec 1969

    Default Thank you Grommit <eop>

    Thank you much Grommit

Posting Permissions

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