Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: onblur event

  1. #1
    Regular Coder
    Join Date
    May 2009
    Posts
    165
    Thanks
    77
    Thanked 1 Time in 1 Post

    onblur event

    Hi, instead of placing an onblur event directly on the element in html, I was wondering if it was possible to do something like this?
    Code:
    $(document).ready(function() {
    		
    		$("#depart").onblur(function(){
    		
                    ...
    I cant get this working, but dont even know if its possible.

    Thanks

  • #2
    Regular Coder Nile's Avatar
    Join Date
    Jun 2008
    Posts
    280
    Thanks
    2
    Thanked 46 Times in 46 Posts
    With jQuery, it's .blur() instead of .onblur().
    http://api.jquery.com/blur/

    Good luck


  •  

    Posting Permissions

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