Form Validation

Results 1 to 2 of 2

Thread: Form Validation

  1. #1
    Join Date
    Dec 1969

    Default Form Validation

    How can I validate a Form and return to the same Form if there is an error. But keeping the rest of the information that is Ok. <BR><BR>Appreciate any help

  2. #2
    vasista Guest

    Default RE: Form Validation

    Use like this<BR>function validate()<BR>if (document.myForm.field.Value=="")<BR>{<BR>alert("E nter value");<BR>;<BR>doc ument.myForm.field.focus();<BR>return false;<BR>}<BR>where myForm is the Form Name,field is the Name of Field.<BR>repeat the Same for Other Fields.<BR>Finally call document.myForm.submit(); to submit the form elements

Posting Permissions

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