-3
<li class="LightColour">

on user select the li tag change the class = "DarkColour"

How to do this in knockout?

nemesv
  • 138,284
  • 16
  • 416
  • 359
user1893874
  • 823
  • 4
  • 15
  • 38

1 Answers1

1

I would suggest going and reading up on the CSS binding in knockout. You can do things like:

<li data-bind="css: yourComputedVariable">

http://knockoutjs.com/documentation/css-binding.html

Can't really help you more than that as your question is pretty vague, with no code for me to work from.

Thewads
  • 4,953
  • 11
  • 55
  • 71