📅  最后修改于: 2022-03-11 15:02:48.278000             🧑  作者: Mango
//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