首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为kendoNumericTextbox隐藏的输入类型

为kendoNumericTextbox隐藏的输入类型
EN

Stack Overflow用户
提问于 2020-01-17 16:08:52
回答 1查看 41关注 0票数 0

当我在这个文本框上使用kendoNumericTextbox时,可以将它隐藏起来吗?Working Demo

代码语言:javascript
复制
$("#sum_of_itemGrid").kendoNumericTextBox({
  spinners: false,
  format: "{0:n2}",
  decimals: 2,
  restrictDecimals: true
});	

$("#sum_of_subRecipeGrid").kendoNumericTextBox({
  spinners: false,
  format: "{0:n2}",
  decimals: 2,
  restrictDecimals: true
});
代码语言:javascript
复制
<input type="hidden" id="sum_of_itemGrid" class="k-textbox" />
<input type="hidden" id="sum_of_subRecipeGrid" class="k-textbox" />

我试过了

代码语言:javascript
复制
document.getElementById("sum_of_itemGrid").style.display='block';
document.getElementById("sum_of_itemGrid").style.visibility='visible';
EN

回答 1

Stack Overflow用户

发布于 2020-01-17 16:16:38

明白了,需要使用包装器

代码语言:javascript
复制
$("#sum_of_itemGrid").data("kendoNumericTextBox").wrapper.hide();
$("#sum_of_subRecipeGrid").data("kendoNumericTextBox").wrapper.hide();
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59783384

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档