2014/05/29(Thu) 16:36:12 編集(投稿者)
■No72265 (A さん) に返信
hoge(0);
function hoge(i) {
$.ajax({
type: "POST",
async: true,
url: "test.php",
data: { buttonType: "test" },
success: function () {
if (i % 2 == 0) {
$("[type=button]").attr('disabled', true);
}
else {
$("[type=button]").attr('disabled', false);
}
if (i < 5)
hoge(i + 1);
}
});
}
これでどうでしょう?