In the following code, the button does not trigger the click event. If I remove the imgSrc from the jqxButton object then the click event does trigger.
<style>
.addButton, .remButton, .bothButton {
width: 26px !important;
height: 26px !important;
font-size: 10px !important;
vertical-align: central !important;
padding-bottom: 6px !important;
}
</style>
<script>
function viewModel() {
this.serial = ko.observable(0);
this.addItem = function() {
console.log("Here");
}
}
</script>
<div id="fred">
<button id="cpmAdd" class=".addButton" data-bind="click: addModel, jqxButton: { template: 'success', imgSrc:'/images/IconPlus.png', imgPosition: 'center' }"></button>
</div>
<script>
viewModel= new viewModel();
ko.applyBindings(viewModel, document.getElementById("fred"));
</script>