I have a working model with many variables.
I am using autoNumeric ( http://www.decorplanit.com/plugin/ ) to format text in a text box. I would like to use the data obtained using the input field in the calculated observable, but if the visible text field with formatting is changed, the formatting will also be saved in a variable.
How can I observe only the value of an input field without formatting?
I think the best way to do this would be to getter / setter for the observable and remove the formatting when the value is set. I could not find a solution in the documentation for the knockout to write get / set methods for ko.observable (), and ko.computed () could not save the value.
I do not want to use hidden fields or additional variables. Is it possible without this?
source
share