knockout.js - How to add and remove extender on runtime? -
i using extender validation in text-box accept numeric value. had referred same example shown in this link, in case have drop-down beside text-box, particular selected text of drop-down should apply binding(with extender) otherwise should apply normal binding.
for few options of dropdown, textbox should apply numeric check others should not.
i want change these 2 binding on drop-down change on run-time -
self.textinput = ko.observable(); self.textinputnumeric = ko.observable().extend({ numeric: 0 });
check question here, on bottom there couple of edits actual code may you
Comments
Post a Comment