2

次のステップに移動したときにアラート メッセージを非表示にしたい。

jquery スマート ウィザード タブ ナビゲーションを使用しています。サンプルコードをご確認ください。

if(step == 1){
            if(validateStep1() == false ){
              isStepValid = false; 
             $('#wizard').smartWizard('showMessage','Please correct the errors in application form and click next.');

              $('#wizard').smartWizard('setError',{stepnum:step,iserror:true});         
            }else{
              $('#wizard').smartWizard('setError',{stepnum:step,iserror:false});
            }
          }

前もって感謝します。

4

2 に答える 2

1

組み込みの方法を使用します。

if (stepnumber == 1) {
    $(function() { 
            $("#wizard").smartWizard("hideMessage");
            $("#wizard").smartWizard("fixHeight"); 
        });
}
于 2016-07-29T17:35:05.977 に答える