I am fairly new to Knockout JS. I am trying to do a simple task, if the drop down menu changes show a helper text depending on the value selected in the drop down list.
My example is located on jsFiddle: http://jsfiddle.net/dnfCb/10/
Note: I am not sure if linking to jsFiddle is allowed, if not I will paste the code here. It seems the ko.computed event only fires on load. Can’t seem to get it to fire when the criteria changes.
Thank you for your time.
You need to bind your
<select>value to an actual observable property to see changes.and
Note that
criteriais a function that needs to executed in order to get the underlying value, sowould not work.
http://jsfiddle.net/dnfCb/11/
BTW, I think the the self-contained view model set-up is a little nicer: