I want to create dirty flag functionality using knockout. I want to enable the save button only if something has changed. My view and my view model is exactly same as exampl
The dirty flag for knockout is already implement in the small library koLite - https://github.com/CodeSeven/kolite .
koLite
Or here is an example of creating it: http://www.knockmeout.net/2011/05/creating-smart-dirty-flag-in-knockoutjs.html