如何隐藏'输入:readonly'... [英] how to hide 'input:readonly'...

查看:67
本文介绍了如何隐藏'输入:readonly'...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在页面加载时隐藏值'400'并在需要时显示。

这是我的代码:



< input readonly =readonlytype =textname =remLensize =3maxlength =3

value =400style =z- index:1; left:1305px; top:402px; width:20px; height:13px; font-size:x-small; position:absolute/>



谢谢。

解决方案

你可以将runat =Server标签添加到输入类型中页面加载将输入类型的值分配给隐藏变量,并在需要从隐藏变量返回输入值时清除输入值

I would like to know how to hide the value '400' on pageload and to show whenever I require.
Here is my code:

<input readonly="readonly" type="text" name="remLen" size="3" maxlength="3"
value="400" style="z-index: 1; left: 1305px; top: 402px; width:20px; height:13px; font-size:x-small; position: absolute" />

Thanks.

解决方案

you can add the runat="Server" tag to input type and in page load assign the value of the input type to hidden variable and clear the input value when you need the value assign back the Input value from the hidden variable


这篇关于如何隐藏'输入:readonly'...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆