我有一个输入框,我想要它被禁用同时隐藏它,以避免在移植我的表单时出现问题。
目前我有以下代码来隐藏我的输入框:
$(".shownextrow").click(function() {
$(this).closest("tr").next().show().find('.longboxsmall').hide();
});
这是被隐藏的输入内容:
<input class="longboxsmall" type="text" />
我该如何将禁用属性(disabled attribute)添加到输入框?