无法禁用与组合框关联的文本框 [英] cannot disable text boxes that are associated with a combobox

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

问题描述

我有文本框:基于组合框LastName填充的Rank,FirstName和MI。

当我选中复选框CkMisc时,应禁用文本框和组合框。

当选中CkMisc时,LastName组合框确实被禁用,但是与该组合框相关联的文本框没有。


如果在选中CkMisc时如何禁用文本框?

I have text boxes: Rank, FirstName and MI that are populated based on the combobox LastName.
When I check the checkbox CkMisc the textboxes and the combobox should be disabled.
The LastName combobox does become disabled when the CkMisc is checked, however the textboxes associated with that combobox do not.

How can I make the textboxes become disabled when the CkMisc is checked?

推荐答案

您使用的代码是什么?


展开 | 选择 | Wrap | < span class =codeLinkonclick =LineNumbers(this);>行号


试试这个
展开 | 选择 | Wrap | 行号


这篇关于无法禁用与组合框关联的文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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