0

jquery 禁用按钮设置为灰色

adelaide created at6 years ago view count: 2804

jquery 怎样禁用按钮,把botton置灰,不能点击。

report
回复
0

$(':input[type="submit"]').prop('disabled', true);

取消禁用 $(':input[type="submit"]').prop('disabled', false);

6 years ago 回复
0

$(":submit").attr("disabled", true);

6 years ago 回复