[英]if input text is being entered'empty hide label, when the button is pressed show label
is there a way where I can show the label only when the button is pressed and hide it when the textbox is empty or is being re-entered? 有没有一种方法可以让我仅在按下按钮时显示标签,而在文本框为空或正在重新输入时隐藏标签? I am using asp.net to develop the web app
我正在使用asp.net开发Web应用程序
这可以通过使用JavaScript函数并将它们链接到按钮/文本框的OnClick / OnChange事件来实现。
将该文本框置于面板中,并在单击按钮时单击事件,您可以编写文本框ID.visible = true,否则编写文本框ID.visible = false
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.