?
Solved

jquery event handler how do I access element on blur?

Posted on 2012-04-13
2
Medium Priority
?
375 Views
Last Modified: 2012-04-13
I am going to be using blur and want to know how to access the dom element I am passing in.  How do I implement the eventData and use it?

In the documentation, it says this:
.blur( [eventData], handler(eventObject) )
0
Comment
Question by:jackjohnson44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Expert Comment

by:nishant joshi
ID: 37844433
0
 
LVL 23

Accepted Solution

by:
basicinstinct earned 2000 total points
ID: 37844439
http://jsfiddle.net/Lk3b6/

$('#target').blur({foo:"bar"}, function(e) {
    alert("Element that lost focus: " + e.target.id);
    alert("data: " + e.data.foo);
});¿
0

Featured Post

How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question