I\'m using knockoutjs and I currently have something in my view that looks like this:
The answer of madcapnmckay is not completely correct. You can better use currentTarget: it will return the original bound element instead of a child element, when i.e. you have a div with nested elements in it.
See this question
Update
As @Ryan mentioned - event.currentTarget is not available for IE8. For <= IE8 support you can use:
var target = (event.currentTarget) ? event.currentTarget : event.srcElement;