I have three similar foreaches, from them I choose items (chekboxes), these items are displayed in data-bind="foreach: SelectedBooks"
data-bind="text: bookName"
.
But, how I can get access to the choses items outside of the used data-bind="foreach: AllBooks"
and display data in other place.
Something like this data-bind="text: $root.userName, $root.bookName, $root.someName"
with saving of the order of the selected items?
I tried to use this documentations http://knockoutjs.com/documentation/binding-context.html but its still doesn't work.