 <pre><code>ko.applyBindings(new menuView(), document.getElementById('blancos_menu')); </code></pre> <p>replace this with </p> <pre><code>ko.applyBindings(new menuView(),$("#blancos_menu")[0]); </code></pre> <p>and why you using this?</p> <pre><code>&lt;span data-bind="text: $root.blancos"&gt;&lt;/span&gt; &lt;!-- ko foreach: $root.blancos --&gt; </code></pre> <p>you can use </p> <pre><code>&lt;ul data-bind="foreach: blancos"&gt; &lt;li data-bind="&lt;ARRAY ELEMENT IN blancos&gt;"&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre>