本文介绍了禁用文本输入上的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个包含6个文本框,一个组合框和3个复选框的表单。第一个文本框用于唯一ID;如果用户开始输入此ID,我需要禁用其他5个texbox,组合框和3个复选框,或者如果用户删除输入的数字,则启用它们。我已经尝试在文本框控件下的每个选项下,与keypress,keyup,keydown等有关...我也在表单选项下尝试了这个。它可能非常简单,我根本不在我的聚焦模式。这是我被解雇的函数的代码I have a form that contains 6 textboxes, a combo box and 3 checkboxes. The first textbox is used for a unique id; if the user starts to enter this ID, I need to disable the other 5 texboxes, combo box and 3 checkboxes or enable them if the user removes entered numerics. I have attempted to this under every option under the textbox control that pertains to keypress, keyup, keydown, etc... I have also attempted this under the form options as well. It is probably something very simple and I am simply not in my focused mode. Here is the code for my fired functions 展开 | 选择 | Wrap | 行号推荐答案 展开 | 选择 | Wrap | 行号 这篇关于禁用文本输入上的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-03 09:47