Refer to this code (Origin Version).
I can’t get my value update when I key in something to my added choice text box.
It work after I push an object into the observableArray. See here (Modified Version).
But I think there should be a solution for me to directly use observableArray like Origin Version instead of push an object to the array like Modified Version.
Help appreciated.
Hackish way to get around the foreach problem: http://jsfiddle.net/j8K29/7/
ko.observable(ko.observable(""))has the outer observable unwrapped byforeachand the inner observable remains.I also changed your
removeChoicefunction to reflect this change.