【发布时间】:2011-07-16 11:45:14
【问题描述】:
当下拉菜单的选定值不是 0 时,我尝试使用 jquery 禁用复选框。我的问题是当我选择值为 0 的项目时,复选框被禁用并获取复选框禁用我必须选择至少两个或更多值才能禁用复选框。
我的代码示例如下:
When the selected value is 0 I want the checkbox and drop down to be enabled and when the selected value is anything other than 0 I want to disable the checkbox.无论我是从第一行、底部、行还是中间行开始,我也希望它能够工作。
【问题讨论】:
标签: jquery select checkbox drop-down-menu