Accessing the data of the knockout related element
1 answer
Take a look at "Using unobtrusive event handlers" on the Knockout website:
http://knockoutjs.com/documentation/unobtrusive-event-handling.html
You seem to be looking for a function ko.dataFor(element)
that returns data associated with an element.
+9
source to share