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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Take a look at “Using unobtrusive event handlers” on the Knockout website:
http://knockoutjs.com/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.