Possible Duplicate:
Getting the ID of the element that fired an event using JQuery
To give an example suppose I have
<p id="name" class="editable"...
Later on in JavaScript I have
$("#editable").focusout(function(e){...
How can I retrieve the id of the element that has just lost the focus?
You have wrong selector in jQuery, must be:
To alert
idof element that lost focus you need to usethiscontext as selector inside callback: