Possible Duplicate:
When onblur occurs, how can I find out which element focus went to?
I have a jquery function that allows me to do something when an element (here selectionChamp) loses focus:
$("#selectionChamp").blur(function() {
$("#detailChamp").attr('disabled', true, 'enabled', false);
$("#supprChamp").attr('disabled', true, 'enabled', false);
});
I would like to add a condition for the function to do something when you lose focus unless you click on an element with another id. (id="toto" for example !^^)
An idea?