www.webdeveloper.com
Results 1 to 4 of 4

Thread: onBlur event not fired

  1. #1
    Join Date
    Oct 2012
    Posts
    1

    onBlur event not fired

    Hi,

    I'm using FireFox 16.0 for development. In my jsp form I'm calling javascript function for validation at onBlur of a textbox. It works fine if I change the focus to another textbox. But if I click submit button without changing focus, the validation does not occur and the form gets submitted. Kindly suggest a solution.

    Thanks
    Veronica.

  2. #2
    Join Date
    Oct 2010
    Location
    Versailles, France
    Posts
    1,252
    Perhaps a setTimeout before submitting (to submit the form after a delay) will allow to call the function...

  3. #3
    Join Date
    Apr 2010
    Location
    Salem,Ma
    Posts
    623
    you should also perfom validation onSubmit : http://www.htmlcodetutorial.com/form..._onSubmit.html
    Last edited by DanInMA; 10-22-2012 at 03:50 PM.

  4. #4
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,105
    The blur seems to be firing in this basic example:
    http://jsfiddle.net/zTamB/1/
    I'm always up for networking with fellow web professionals. Connect with me on LinkedIn if you like!

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