$(document).ready(function() {
$('form').submit(function() {
if(typeof jQuery.data(this, "disabledOnSubmit") == '未定義') {
jQuery.data(this, "disabledOnSubmit" , { submited: true });
$('input[type=submit], input[type=button]', this).each(function() {
$(this).attr("disabled ", "無効");
});
return true;
}
else
{
return false;
}
});
});