I have bind my element with the ko, and its working fine.
My requirement is i have that element which is bond to the ko,
Data is not available even getting like this $(elem).data()
How to get it's data?
I have bind my element with the ko, and its working fine.
My requirement is i have that element which is bond to the ko,
Data is not available even getting like this $(elem).data()
How to get it's data?
Share Improve this question asked Mar 30, 2012 at 12:19 Rajagopal 웃Rajagopal 웃 8,4917 gold badges33 silver badges44 bronze badges1 Answer
Reset to default 9Take a look at "Using unobtrusive event handlers" on the Knockout website:
http://knockoutjs./documentation/unobtrusive-event-handling.html
It sounds as though you are look for the ko.dataFor(element)
function which returns the data that is bound against the element.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744233077a4564348.html
评论列表(0条)