I am trying to learn knockout. I am wanting to build an input form that inserts into a list
I have taken the examples and tried to modify them to suit.
I have a jsFiddle example
I am wanting to setup the 2 textboxes to allow inserting values into the viewmodel. I have tried adding data-bind=”value:question” & data-bind=”value:qtype” to each of the inputs however that doesn’t seem to help
If anyone could take a look at the jsfiddle and let me know what I am doing wrong would be awesome.
Thank you
You need to set the input elements to observables (or another variable) to capture them and then add them to the array. Fiddle is attached:
http://jsfiddle.net/johnpapa/DQGYX/7/