Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thanks for this (correct) answer, but I'm wondering if there is still a way to access the info out of the context just for future reference? Commented May 17, 2012 at 23:26
  • 1
    added those details up front, ko.dataFor and ko.contextFor just need the dom node, which you can get looking at the event in your handler function. $root on the result of contextFor would be your view model Commented May 17, 2012 at 23:30