Remove an element from observableArray inside another observableArray in knockout
问题 After finishing knockout tutorial working with lists and collections I decided to go a little bit further to implement two level nesting with knockout. The structure of my ViewModel looks like this: function ViewModel() { this.elements = ko.observableArray([{ id: 1, txt: 'first', el: ko.observableArray(['first', 'second']) },{ id: 2, txt: 'second', el: ko.observableArray(['first', 'third']) },{ id: 3, txt: 'third', el: ko.observableArray(['fourth', 'fifth']) }]); this.remove = function(el){