knockout.js - How to link checkbox and text value using knockout? -


i want clear text box when checkbox unchecked.

this html:

<input type="checkbox" id="chkminfixcharge" class="left"      data-bind="enable: isenableminfixedcharge,checked: ischeckminfixedcharge" />  <input type="text" id="txtminfixcharge" class="minitext left"      data-bind="value:?????" style="margin: 0px 10px;" /> 

use line of code you

value:ischeckminfixedcharge()? urdefinedvariable:'' 

Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -