启用和禁用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.