javascript - accessing data of the element which is bond to knockout - Stack Overflow

I have bind my element with the ko, and its working fine.My requirement is i have that element which is

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 badges
Add a ment  | 

1 Answer 1

Reset to default 9

Take 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信