禁用输入 [英] Disabled Input

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

问题描述

大家好,


i想知道我是否可以根据用户启用/禁用输入,例如

如果启用input1则启用input2,否则它被禁用了。此外,如果input1被删除,那么
将被禁用。


Wal

thx提前

hello all,

i was wondering if i could enable/disable input according to the user, e.g.
enable input2 if input1 is enable, else it''s disabled. Also, if input1 is
deleted then input2 is disabled.

Wal
thx in advance

推荐答案

这可以通过Javascript完成。请参阅输入

字段的OnChange和Blur选项。请联系JS小组。


Ice Man <诶*** @ hotmail.com> schreef in bericht

news:ua ************* @ TK2MSFTNGP09.phx.gbl ...
This can be done by Javascript. See OnChange and Blur option of a input
field. Please contact a JS group.

"Ice Man" <eh***@hotmail.com> schreef in bericht
news:ua*************@TK2MSFTNGP09.phx.gbl...
hello all,
我想知道我是否可以根据用户启用/禁用输入,例如
如果input1被启用则启用input2,否则它被禁用。另外,如果删除了input1,那么input2将被禁用。

Wal
thx提前
hello all,

i was wondering if i could enable/disable input according to the user, e.g. enable input2 if input1 is enable, else it''s disabled. Also, if input1 is
deleted then input2 is disabled.

Wal
thx in advance


John于2004年8月5日在microsoft.public.inetserver.asp.general中写道:
John wrote on 05 aug 2004 in microsoft.public.inetserver.asp.general:
Ice Man <诶*** @ hotmail.com> schreef in bericht
"Ice Man" <eh***@hotmail.com> schreef in bericht
我想知道我是否可以根据
用户启用/禁用输入,例如
i was wondering if i could enable/disable input according to the
user, e.g.
如果输入1启用则启用输入2,否则它'' s禁用。此外,如果
input1被删除,则input2被禁用。
enable input2 if input1 is enable, else it''s disabled. Also, if
input1 is deleted then input2 is disabled.



这可以通过Javascript完成。请参阅
输入字段的OnChange和Blur选项。请联系JS小组。


[这是一个ASP NG,javascript不是ASP的替代品。]


这个ASP [vbscript here]方法可以很有用,因为通常用户

应该在服务器端定义[通过登录?]:


<%

user = session (用户)

%>


<输入类型=文字名称=输入1

<%if用户LT;>"您"然后response.write" disabled"%>< br>


< input type = text name = input2

<%if if user<>" me"然后response.write禁用%>


This can be done by Javascript. See OnChange and Blur option of a
input field. Please contact a JS group.
[This is an ASP NG, javascript is not an alternative to ASP.]

This ASP [vbscript here] method can be useful, since usually the user
should be defined serverside [by a login?]:

<%
user = session("user")
%>

<input type=text name=input1
<% if user<>"you" then response.write "disabled"%><br>
<input type=text name=input2
<% if user<>"me" then response.write "disabled"%>




-

Evertjan。

荷兰。

(请将x''更改为我的电子邮件地址中的点)



--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


此外,如果删除input1,则禁用input2。 />

我想知道Evertjan你在ASP中的这个怎么样?
Also, if input1 is deleted then input2 is disabled.

I wonder Evertjan how you this in ASP?


这篇关于禁用输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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