Solved

jquery event handler how do I access element on blur?

Posted on 2012-04-13
2
355 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
2 Comments
 
LVL 14

Expert Comment

by:nishant joshi
ID: 37844433
0
 
LVL 23

Accepted Solution

by:
basicinstinct earned 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now