javascript - Knockout click on checkbox can't define new check box state in IE -
i have next checkbox on page ,
<input type="checkbox" id="cbselectall" data-bind="click:modeladdrview.selectallonpage">
and have function in model define new checkbox state , make operation method how define state not working in ie ( $(event.toelement).is(':checked') return false )
.
self.selectallonpage = function (data, event) { var list = self.pagedataview(); var operationset = $(event.toelement).is(':checked'); self.selectarray(list, operationset); $("#addrlist input:checkbox").attr("checked", $(event.toelement).is(':checked')); //self.selected(list); return true; }
how define new check box state in correct way knockout?
i have findout issue need use $(event.target)
Comments
Post a Comment