Jules Wensley
Jules Wensley

Reputation: 111

Iterating over a KnockoutJs observableArray

Hi (another Knockout question :-( , sorry)

I have an observable array with five fields (used for data binding etc.) bound to a dropdown.

When a item is chosen from the dropdown, I need a way to iterate through the array and return the additional values that are not present in the dropdown.

Once again, thanks for your help.

Upvotes: 0

Views: 1864

Answers (1)

Roman Bataev
Roman Bataev

Reputation: 9361

You can access the entire selected object via "value" binding. You are not limited to two fields. Here is a similar question, and here is a code sample.

Upvotes: 2

Related Questions