checkbox binding

2 posts, 0 answers
  1. Bruce
    Bruce avatar
    5 posts
    Member since:
    Oct 2012

    Posted 08 May 2014 Link to this post

    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.
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 12 May 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top