title: Why doesn't the Javascript Swal Fire method work?
body: <pre><code>&lt;script type="text/javascript"&gt;
      function musterisecme() {
          var musterilistesi = document.getElementById("musterilistesi");
          var secilendeger = musterilistesi.options[musterilistesi.selectedIndex].value;
          if (secilendeger == "musteri_ekle") {
              Swal.fire({
                  title :"Dikkat!",
                  text :"Müşteri ekleme sayfasına yönlendirilmek istediğinize eminmisiniz?",
                  type: "warning",
                  showCancelButton:true
              })
          } 
      }
      &lt;/script&gt;
  </code></pre>
  
  <p>My codes are that way but what could be the reason I am getting this error?</p>
  
  <blockquote>
    <p>Error: Uncaught ReferenceError: Swal is not defined
        at musterisecme (domainekle.php:314)
        at HTMLSelectElement.onchange (domainekle.php:226)</p>
  </blockquote>