Results 1 to 3 of 3

Thread: Mouse Click validation to HTML Inputs

  1. #1
    Join Date
    May 2012

    Mouse Click validation to HTML Inputs

    i have 10 text box's with 1 drop down list box (html)
    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
    Somewhere behind your screen
    the easiest way would be to find and fix some errors in your code which does not work properly but at least exists...
    signature under construction

  3. #3
    Join Date
    Feb 2012
    Bokaro Steel City (Jharkhand), India!
    Use onblur event!
    "It will never rain roses: when we want to have more roses, we must plant more roses." - George Eliot

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