Knockoutjs: Not working in IE7 [closed]

2019-04-15 10:40发布

问题:

Please find my code in the fiddle : http://jsfiddle.net/vdcUA/55/

This is not working in IE7 or more specifically IE8-Compatible mode

I have used the knockoutjs plugin in the code.

Please suggest how to over come this ...

Thanks, Naveen

回答1:

Looks like IE7 requires a tbody to insert/remove rows via JavaScript. Adding a tbody tag to your table and putting your template binding on it works properly: http://jsfiddle.net/rniemeyer/P6aDk/