How can I do that?
event.target
returns a HTML object,
and my element is a jQuery object.
Is there a better way to find out if event.tar
Actually, I found another way, much more handy one :) Just need to use the data argument:
Data to be passed to the handler in event.data when an event is triggered.
Now my code looks like this:
var inp = $('');
inp.focus( { j : inp } , $.proxy( this.onInpFocus, this ) );
//and the handler method
onInpFocus : function( e )
{
var inp = e.data.j;
...
}