The knockout.js documentation shows the css binding like this:
Profit Information
Have your click function change an observable variable. For example:
Profit Information Change Class
Note: You can combine click and css on the same element. For example:
click
css