Thursday 16 August 2012

I'm using Bootstrap and knockout for my upcoming app, 404hound, and I had a bit of an issue with the enable binding from knockout when the element is an anchor.

Problem #1: I was using the anchor as a button (by annotating the class as `btn`) and unfortunately the disabled doesn't really work. Fortunately though, I was able to fix that problem easily by changing the type from to

Problem #2: I wanted to be able to set the `disabled` class (to disable the button) when the preconditions have not been met. I managed to fix that by using the css binding like so:


       
            changes


No comments:

Post a Comment