i read many tutorials but i dont know how to do this, this is the input
input(type=\"text\",name=\"price\",id=\"price\"data-bind=\"text: price,valueUpdate:[\
I know this question is a year old but let me post this for the sake of feature visitor of the page.
Check this out:
ko.bindingHandlers.numericnumbers = {
init: function (element) {
$(element).on('keypress', function (number) {
number = (number) ? number : window.event;
var charcode = (number.which) ? number.which : number.keyCode;
if (charcode > 31 && (charcode < 48 || charcode > 75))
number.preventDefault();
});
}};