按钮1
按钮2
scpript中增加代码
$([id=‘1001’]).each(function(){
$(this).css(“backgroundColor”,“grey”);
$(this). attr(“disabled”,“disabled”);
}
)
本文介绍了一段使用jQuery修改特定ID(1001)按钮样式的代码,将其背景颜色更改为灰色并使其不可用。
scpript中增加代码
$([id=‘1001’]).each(function(){
$(this).css(“backgroundColor”,“grey”);
$(this). attr(“disabled”,“disabled”);
}
)

被折叠的 条评论
为什么被折叠?