Knockout.js: time input format and value restriction
Here is a thread with a few different techniques to keep the value numeric: https://groups.google.com/d/topic/knockoutjs/SPrzcgddoY4/discussion One option is to push this concern into your view model and create a numericObservable to use instead of a normal observable. It might look like: ko.numericObservable = function(initialValue) { var _actual = ko.observable(initialValue); var result = ko.dependentObservable({ read: function() … Read more