data-bind="
attr:{
'selected': typeof(selected) !== 'undefined' ? 'selected' : null
}"
Source : http://stackoverflow.com/questions/12963023/conditionally-add-an-element-attribute-in-knockout-js
data-bind="
attr:{
'selected': typeof(selected) !== 'undefined' ? 'selected' : null
}
Aucun commentaire:
Enregistrer un commentaire