http://mootools.floor.ch/en/labs/formcheck/forum-registration/

 

$(document).ready(function(){
                
new FormCheck('formular');
 });

$(document).ready(function(){
                
new FormCheck('formular',
                {
                  submitByAjax:
true,
                  onAjaxSuccess:onajaxsuccess
                });
                
function onajaxsuccess(arg){
                    
if(arg==1){
                        ymPrompt.succeedInfo({title:
'消息',message:'添加成功!'});
                        $(
"form")[0].reset();
                    }
else{
                        ymPrompt.errorInfo({title:
'消息',message:'添加失败!'});
                    }
                    setTimeout(
function(){ymPrompt.doHandler('ok')},2000);
                }
});

相关文章:

  • 2022-02-10
  • 2021-12-01
  • 2021-12-07
  • 2021-05-23
  • 2021-09-02
  • 2021-04-21
猜你喜欢
  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2021-08-14
  • 2021-11-29
  • 2022-01-22
相关资源
相似解决方案