📌  相关文章
📜  jQuery 禁用启用提交按钮 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:30.581000             🧑  作者: Mango

代码示例1
//jQuery 1.6+ use:
$("#submitButtonID").prop('disabled', true); //disable 
$("#submitButtonID").prop('disabled', false); //enable

//jQuery 1.5 and below use:
$("#submitButtonID").attr('disabled','disabled'); //disable 
$("#submitButtonID").removeAttr('disabled'); //enable