I\'m new to Knockout.js and I\'m trying to display data from observable array to a table
.
The problem I have is it generates two tbody
tags. But if
When doing this we make a lot of use of virtual elements. They are outlined here http://knockoutjs.com/documentation/if-binding.html#note_using_if_without_a_container_element
The rest of your markup is fine, but you could wrap your first tbody in a virtual element like this:
JSFiddle here: http://jsfiddle.net/ZKWMh/