I am using a jQuery UI slider control that raises a change event. I want to use Knockout to bind to this change event and call a method inside my model. How is this done? I am confused, because this event isn't related to the DOM or something that is typically used to bind.
Asked
Active
Viewed 2,120 times
0
-
1This is the general pattern: http://stackoverflow.com/questions/12856112/using-knockout-js-with-jquery-ui-sliders – WiredPrairie Feb 09 '13 at 01:50
1 Answers
1
Why not use an event listener that sets the model variable, ie
var callback = function(value) {
koModel.someVariable(value);
}
and use that as the callback to your slider.

Tom Carchrae
- 6,398
- 2
- 37
- 36