【发布时间】:2011-04-17 22:15:01
【问题描述】:
我有一个输入框,我希望禁用它,同时隐藏它以避免在移植我的表单时出现问题。
到目前为止,我有以下代码来隐藏我的输入:
$(".shownextrow").click(function() {
$(this).closest("tr").next().show().find('.longboxsmall').hide();
});
这是被隐藏的输入:
<input class="longboxsmall" type="text" />
如何将 disabled 属性也添加到输入中?
【问题讨论】:
标签: javascript jquery input onclick