This is a migrated thread and some comments may be shown as answers.

checkbox binding

1 Answer 905 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Bruce
Top achievements
Rank 1
Bruce asked on 08 May 2014, 08:16 PM
Is it possible to do the following:
<label ><input type="checkbox" name="otherlang" value="Other" data-bind="checked:language, checked:othlang" />Other</label>

I have a list of checkboxes, want the value of each box checked to language and also want to make a textbox visible with othlang.
It seems othlang becomes visible but I do not get the value "Other" in language.

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 12 May 2014, 10:34 AM
Hi Bruce,

I am not sure what exactly you would like to achieve. You are speaking about toggling the textbox visibility but in your code snippet there is no text input nor a visible binding.
In case you are not sure which binding to use please check the checked, visible and value binding help topics:

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
MVVM
Asked by
Bruce
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or