When we want to apply bindings on the particular element using jquery, we should use following code:
ko.applyBindings(new CarsViewModel(), $('#form0')[0]);
Zero ([0]) is important, otherwise it will not work.
When we want to apply bindings on the particular element using jquery, we should use following code:
ko.applyBindings(new CarsViewModel(), $('#form0')[0]);
Zero ([0]) is important, otherwise it will not work.