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

move validation observable computed


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -