$(document).ready(function() {
$('form').submit(function() {
if(typeof jQuery.data(this, "disabledOnSubmit") == 'undefine') {
jQuery.data(this, "disabledOnSubmit" , { 제출됨: true });
$('input[type=submit], input[type=button]', this).each(function() {
$(this).attr("disabled ", "비활성화됨");
});
return true;
}
else
{
return false;
}
});
});