Pedro Chagas
asked on
Jquery - what was the id that triggered the event
Hi E's,
I have this code:
The output of this code is false!
How I know if it is the #one or the #two id that triggered the event?
The best regards, JC
I have this code:
$("#one, #two").focus(function(){
alert($(this).is(":focus"));
});
And I have to know what was the id that triggered the event.The output of this code is false!
How I know if it is the #one or the #two id that triggered the event?
The best regards, JC
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Randy, the output is "undefined".
Thanks for trying to help.
The best regards, JC
Thanks for trying to help.
The best regards, JC
Open in new window
to see what you get