I am using phonegap, html 5,knockout to develop
Below code do not work for 2.3 android but work for 4.0+ android
<input type="checkbox" data-bind="checked: IsChecked,attr:{Id:id()+'check'}" class="checkBoxInput" />
<label data-bind="attr:{for:id()+'check'}"></label>
May be a script error but none of the knockout data load after that.
Where as code below (hard-coded without ko) works
<input type="checkbox" id="test" class="checkBoxInput" />
<label for="test"></label>
Thanks for your attention Edward van Raak
just small change, single quotes? 'for':id() and it work
<label data-bind="attr:{'for':id()+'check'}"></label>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.