启用和禁用TextBox / Radiobutton / Checkbox [英] Enabling and Disabling A TextBox/Radiobutton/Checkbox

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

问题描述

我在表格上有六个文本框

textbox1

taxtbox2

textbox3

textbox4
yextbox5

textbox6

每个文本框都代表并批准休假申请的权限。但是,只有在相应的权限登录时才需要启用textbox1,否则它将保持禁用状态。所有其他字段都会发生同样的事情



例如,如果Textbox1代表Principal,则只为他启用,并且所有其他文本框都不可用

I have six text boxes on a form
textbox1
taxtbox2
textbox3
textbox4
yextbox5
textbox6
Each these text boxes represent and approving authority for an leave application. However it is desired that textbox1 get enables only when corresponding authority login, otherwise it remain disable. Same thing happen with all other fields

eg if Textbox1 represent Principal, this will be enabled for him only and all other text boxes are not available to him

推荐答案

检查登录值参数,并在页面加载时禁用textbox1。
Check the login value parameter and on the page load disable the textbox1.


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

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