I'm truly sorry Michael: I've tried the code in Chrome and it's
working fine. So some features of KnockoutJS doesn't have cross
browser compability then.
I've used KO comments inside view because KnockoutJS doesn't let me to
use both "foreach" and "if" bindings on single Dom element: for
example
<select data-bind="if: false, foreach: groups">
<optgroup data-bind="attr: {label: label}, foreach: children">
<option data-bind="text: label"></option>
</optgroup>
<option data-bind="ifnot: false, text: label"></option>
</select>
this code gives me an error stating that using if and foreach binding
together is disallowed. So I cannot do such thing in IE7 or IE8? ...
Too bad.
I'll try to do the same with jQuery.tmpl then.