Working in Bootstrap-Knockout environment, I have to create some elements to enhance the application. I found it's not easy to work in this environment because Knockout dominates all the time. Therefore, I found a very good piece of software which work for me.
The code is in http://billpull.github.io/knockout-bootstrap/js/knockout-bootstrap.min.js
It's much easier to work with this library than raw bootstrap and knockout.