knockout.js - options binding broken after applying css class -
knockout (2.2.1) options binding working ok broken silently after css class applied outer div.
<div class="class1 class2"> <select data-bind="options: months, ...
if include 'class2', browser not complain drop down list empty..
[edit] knockout view model working ok, not asking it, provides months 01, 02, ... can imagine , drop down list shows them on click. 'class2', shows nothing, empty. our company outsourcing css stuff.
and 'class2',
$(".class2 select").chosen({width: '300px'});
[edit 2] turns out jquery plug-in 'chosen' hasn't been set , caused empty .
the attribute called data-bind not data-binding
Comments
Post a Comment