button 隐藏展示

css 设置隐藏

// style="display: none" 设置按钮隐藏
<button type="button" style="display: none">暂存</button>

JS控制显示、隐藏、置灰

// 按钮显示
$("#save").show();

// 按钮置灰
$("#submit").attr('disabled', true);
$("#submit").attr('disabled', 'block');

// 按钮隐藏
$("#submit").hide();

猜你喜欢

转载自blog.csdn.net/qq_37570710/article/details/128862051