dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: Mouse Click validation to HTML Inputs

  1. #1
    Join Date
    May 2012
    Posts
    1

    Mouse Click validation to HTML Inputs

    i have 10 text box's with 1 drop down list box (html)
    e.g:
    First name*: <input type="text" name="fname" /><br />
    Last name*: <input type="text" name="lname" /><br />
    Address*: <input type="text" name="address" /><br />
    ...
    ...
    i need to validate and inform with an error label if user skip any text box when he filling the form.

    e.g :
    user skip first text box as empty and he point mouse cursor on 2nd text box error(name is required) if he back to first text box error disappear
    if he skip first two text boxes as empty need to show error on both boxes ...
    (top to bottom order)

    if there any easier way to handle this..

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,674
    the easiest way would be to find and fix some errors in your code which does not work properly but at least exists...

  3. #3
    Join Date
    Feb 2012
    Location
    Bokaro Steel City (Jharkhand), India!
    Posts
    194
    Use onblur event!

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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