SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: validate form

  1. #1
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    validate form

    hi
    i have a form. there are six fields which are all necessary.
    I want to add javascript in my code that once submitted, if any field is empty, then word will show after the field which is empty. that XX is required. And the field name also changed to red colour.

    How can I write the javascript?

  2. #2
    SitePoint Zealot sajjad's Avatar
    Join Date
    May 2005
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The example is about show the alart windows if one of the field is empty.
    I want to just display an sentence after the field if any field is empty.

    Does anyone know how to do that???


Bookmarks

Posting Permissions

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