i have html like this :
<div class="row thumbnailrow" data-bind="foreach: data">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 thumbpadding" data-bind="html: HtmlText">
</div>
<div>
after getting ajax call :
success: function (data) {
$.each(data, function (i, items) {
debugger;
self.data.push(items);
});
}
so it will populate the html binding and google chrome output like this :
<div class="row thumbnailrow" data-bind="foreach: MyProfilesData">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 thumbpadding" data-bind="html: HtmlText"><div>
<div class="pcbtn btnpcedit" data-bind="click: EditProfile" />
</div>
</div>
so here my click: EditProfile
is not working, this event is not fired, when i click on edit button.
Aucun commentaire:
Enregistrer un commentaire