让提供按纽失效的jQuery代码片段

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

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

Now, in order to enable the disabled attribute, use the following line of code:

$('input[type="submit"]').removeAttr("disabled”);