www.webdeveloper.com
Results 1 to 3 of 3

Thread: Form validation error on lost focus

  1. #1
    Join Date
    Dec 2006
    Posts
    115

    Question Form validation error on lost focus

    Hi all

    I have a html form in a php file..
    I want to display the validation message below the text field if a user doesn’t enter valid data in the field..

    Example:
    If a user doesn’t enter a valid email it gives a validation message “Invalid email” on the email text box lost focus means when the cursor reaches the next field…

    Hope u all got me…

    Can anyone help me??

  2. #2
    Join Date
    Mar 2007
    Posts
    6
    To achieve this, for when a user removes focus from one field to another, you would need to use the javascript onblur event.

  3. #3
    Join Date
    Dec 2006
    Posts
    115
    Quote Originally Posted by stuopa
    To achieve this, for when a user removes focus from one field to another, you would need to use the javascript onblur event.
    can you please provide me some example???

    please

    10q in advance

    regards
    Jack

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles