2

I want to hide the alert message when I moved to next step.

I am using jquery smart wizard tab navigation. Please check the sample code.

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});
            }
          }

Thanks in advance.

Kukeltje
  • 12,223
  • 4
  • 24
  • 47

2 Answers2

1

Use the built in method:

if (stepnumber == 1) {
    $(function() { 
            $("#wizard").smartWizard("hideMessage");
            $("#wizard").smartWizard("fixHeight"); 
        });
}
Connie DeCinko
  • 996
  • 5
  • 19
  • 39
-1

Just call:

msgBox = $('.msgBox');
msgBox.hide();
Tiago Gouvêa
  • 15,036
  • 4
  • 75
  • 81