[jQuery] $("#id").focus

[jQuery] $("#id").focus


I am creating an anchor tag using JS DOM. Focus event handler is
binded to it using
$("#id").focus(function(){
displayDetails(this.id);
});
I am focussing it using $("#id").focus(), then the displayDetails() is
called for twice.