I have the same code for keyup and keydown events, is there any way that I can pass the element to the function so I can call it like element.addEvent('keyup',function(event,element)); on both instead of having to have an inline function?
I have the same code for keyup and keydown events, is there any way
Share
You can use event.target to get the element I believe