【发布时间】:2016-11-21 21:09:13
【问题描述】:
我有一个基于 knockout.js 的网站。 我有一个标签输入提交了一个多选元素。 一切正常,如果它们在加载时显示。 但我只想在用户单击按钮时显示它们。
我该怎么做?
谢谢
<!-- ko if: state=="EDIT" -->
//the default state is not that. Here should appear the tagsinput, but if it's here, don't works
<!-- /ko -->
<input id="domains" type="text" value="" data-role="tagsinput" placeholder="Add tags" />
【问题讨论】:
-
你能告诉我们你的那部分代码吗?一般答案:设置点击可见性?
标签: knockout.js bootstrap-multiselect bootstrap-tags-input