javascript confirmation

 var answer = confirm('Are you sure you want to click this to next tab?');
        if(answer)
        {
          console.log('yes');
          alert('yes');



          $('.nav-tabs a[href="#menu1"]').tab('show')
        }
        else
        {
          console.log('cancel');
          alert('cancel');
        }

0 Response to "javascript confirmation"

Posting Komentar